From 9b5a5c53026656da2dfba21cd89e5e24e0b92a7a Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Mon, 27 Jul 2026 21:31:34 +0800 Subject: [PATCH] style(webui): refine skills mobile experience --- .../settings/SkillsCatalogSettings.tsx | 78 +++++++++++++++---- .../components/settings/SkillsMarketplace.tsx | 15 ++-- webui/src/components/ui/sheet.tsx | 22 +++++- webui/src/tests/app-layout.test.tsx | 15 +++- 4 files changed, 105 insertions(+), 25 deletions(-) diff --git a/webui/src/components/settings/SkillsCatalogSettings.tsx b/webui/src/components/settings/SkillsCatalogSettings.tsx index 6915c296a..fb793e5ad 100644 --- a/webui/src/components/settings/SkillsCatalogSettings.tsx +++ b/webui/src/components/settings/SkillsCatalogSettings.tsx @@ -146,7 +146,12 @@ export function SkillsCatalogSettings({ skills }: { skills: SkillSummary[] }) { className="h-9 rounded-[11px] bg-background pl-9 text-[13px]" /> -
+
{activeSkill.description}
+ {descriptionExpandable ? ( + + ) : null}
{t("settings.skills.enabledControl", { defaultValue: "Use this skill" })}
@@ -467,15 +505,20 @@ function SkillDetailSheet({
disabled={actionBusy}
onClick={() => void toggleEnabled()}
className={cn(
- "relative h-6 w-11 shrink-0 rounded-full transition-colors",
+ "relative -mr-1 h-10 w-14 shrink-0 rounded-full",
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
"disabled:cursor-wait disabled:opacity-60",
- enabled ? "bg-foreground" : "bg-muted-foreground/30",
)}
>
+
@@ -498,7 +541,7 @@ function SkillDetailSheet({
{detail ?
{t("settings.skills.deleteTitle", { defaultValue: "Delete skill" })} @@ -511,11 +554,14 @@ function SkillDetailSheet({