Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
style(webui): distinguish expanded preset editor
Xubin Reneb5d7e1a3230
diff --git a/webui/src/components/settings/SettingsView.tsx b/webui/src/components/settings/SettingsView.tsxindex 648222712..24885fb44 100644--- a/webui/src/components/settings/SettingsView.tsx+++ b/webui/src/components/settings/SettingsView.tsx@@ -3437,7 +3437,7 @@ function ModelsSettings({key={key}id="model-preset-editor"data-testid="model-preset-editor"- className="divide-y divide-border/45 bg-muted/30 motion-reduce:animate-none animate-in fade-in-0 slide-in-from-top-1 duration-200"+ className="divide-y divide-border/45 bg-background/70 motion-reduce:animate-none animate-in fade-in-0 slide-in-from-top-1 duration-200">{creating ? (<div className="flex min-h-[52px] items-center px-4 py-3 sm:px-5">diff --git a/webui/src/tests/settings-view.test.tsx b/webui/src/tests/settings-view.test.tsxindex 62e0b14d5..e68400df4 100644--- a/webui/src/tests/settings-view.test.tsx+++ b/webui/src/tests/settings-view.test.tsx@@ -2167,7 +2167,7 @@ describe("SettingsView Apps catalog", () => {expect(trigger).toHaveAttribute("aria-expanded", "true");expect(trigger).toHaveAttribute("aria-controls", "model-preset-editor");expect(row.nextElementSibling).toBe(editor);- expect(editor).toHaveClass("slide-in-from-top-1", "bg-muted/30");+ expect(editor).toHaveClass("slide-in-from-top-1", "bg-background/70");expect(within(editor).getByDisplayValue("Primary")).toBeInTheDocument();const deleteButton = within(editor).getByRole("button", { name: "Delete" });expect(deleteButton).toBeDisabled();