mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
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:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user