fix(web): improve logs panel scroll handling (#2305)

- forward refs through ScrollArea so logs can access the viewport
- keep logs pinned to the bottom only when the user is already near it
- apply import and className ordering cleanup across frontend components
This commit is contained in:
wenjie
2026-04-03 15:37:23 +08:00
committed by GitHub
parent 7f7b4c430b
commit bd56e10bb8
13 changed files with 97 additions and 53 deletions
@@ -161,9 +161,7 @@ export function EditModelSheet({
{!isOAuth && (
<Field
label={t("models.field.apiKey")}
hint={
hasSavedAPIKey ? t("models.edit.apiKeyHint") : undefined
}
hint={hasSavedAPIKey ? t("models.edit.apiKeyHint") : undefined}
>
<KeyInput
value={form.apiKey}
@@ -53,7 +53,7 @@ export function ModelCard({
? "bg-green-500"
: status === "unreachable"
? "bg-amber-500"
: "bg-muted-foreground/25",
: "bg-muted-foreground/25",
].join(" ")}
title={statusLabel}
/>