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
fix(webui): refine sidebar icon consistency and spacing
chengyongru3dfcb5de5b11
diff --git a/webui/src/components/ChatList.tsx b/webui/src/components/ChatList.tsxindex 62b7aa28e..1d3bdb563 100644--- a/webui/src/components/ChatList.tsx+++ b/webui/src/components/ChatList.tsx@@ -831,7 +831,6 @@ export const ChatList = memo(function ChatList({const tabPartiallySelected = !tabSelected && tabDeleteKeys.some((key) => (selectedDeleteKeys.has(key)));- const projectMode = group.kind === "project";if (isWorkbenchTab) {return (@@ -1042,10 +1041,7 @@ export const ChatList = memo(function ChatList({partial={tabPartiallySelected}/>) : null}- <span className={cn(- "relative flex min-w-0 flex-1 items-center overflow-hidden",- projectMode ? "gap-2" : "gap-1.5",- )}>+ <span className="relative flex min-w-0 flex-1 items-center gap-2 overflow-hidden"><SidebarSessionHandle handle={s.handle} /><span className="min-w-0 flex-1 truncate font-normal leading-5">{title}diff --git a/webui/src/components/Sidebar.tsx b/webui/src/components/Sidebar.tsxindex 121ad3487..ae513ef8f 100644--- a/webui/src/components/Sidebar.tsx+++ b/webui/src/components/Sidebar.tsx@@ -388,7 +388,7 @@ function SidebarActionButton({collapsed? "w-8 justify-center gap-0 px-0": iconOnly ? "w-8 shrink-0 justify-center gap-0 rounded-control px-0"- : "w-full justify-start gap-2 px-2 text-[13px] leading-5 [&_svg]:h-[18px] [&_svg]:w-[18px] [&_svg]:stroke-[1.75]",+ : "w-full justify-start gap-2 px-2 text-[13px] leading-5 [&_svg]:h-4 [&_svg]:w-4 [&_svg]:stroke-[1.75]",active? "text-sidebar-accent-foreground": compactdiff --git a/webui/src/components/icons/product-icons.tsx b/webui/src/components/icons/product-icons.tsxindex 0ec1949f6..cbaa32bd3 100644--- a/webui/src/components/icons/product-icons.tsx+++ b/webui/src/components/icons/product-icons.tsx@@ -20,9 +20,9 @@ export const ComposeIcon = productIcon("compose", <g transform="scale(1.5)" fillexport const ConversationIcon = productIcon("conversation", <><path d="M7 4h10a4 4 0 0 1 4 4v7a4 4 0 0 1-4 4H8l-5 3V8a4 4 0 0 1 4-4Z" /><path d="M7 9h10M7 13h6" /></>);export const SearchIcon = productIcon("search", <><circle cx="10.5" cy="10.5" r="6.5" /><path d="m15.5 15.5 5 5" /></>);export const AppsIcon = productIcon("apps", <><rect x="3.5" y="3.5" width="6.5" height="6.5" rx="1.75" /><rect x="14" y="3.5" width="6.5" height="6.5" rx="1.75" /><rect x="3.5" y="14" width="6.5" height="6.5" rx="1.75" /><rect x="14" y="14" width="6.5" height="6.5" rx="1.75" /></>);-export const SkillsIcon = productIcon("skills", <><path d="M5 18V6a3 3 0 0 1 3-3h11v14M5 18a3 3 0 0 1 3-3h11v6H8a3 3 0 0 1-3-3Z" /><path d="m9 7 2 2-2 2m5-4h2m-5 11h5" /></>);-export const AutomationsIcon = productIcon("automations", <><rect x="3" y="5" width="18" height="16" rx="3" /><path d="M7 3v4m10-4v4M3 10h18m-8 2-4 4h4l-2 4 5-5h-4l1-3Z" /></>);-export const ChannelsIcon = productIcon("channels", <><path d="M4 4h9a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H8l-4 3V6a2 2 0 0 1 0-2Z" /><path d="M15 8h3a3 3 0 0 1 3 3v6a2 2 0 0 1-2 2h-3l-3 2v-4" /><path d="M7 8h5" /></>);+export const SkillsIcon = productIcon("skills", <path d="M8 6.5H5.5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16h1a2.5 2.5 0 0 0 0-5h-1V8.5a2 2 0 0 0-2-2H13v-1a2.5 2.5 0 0 0-5 0Z" />);+export const AutomationsIcon = productIcon("automations", <><rect x="3.5" y="3.5" width="17" height="17" rx="3" /><path d="M12 7.5V12l3 2" /></>);+export const ChannelsIcon = productIcon("channels", <path d="M6.5 3.5h11a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H9l-4 2v-2.4a3 3 0 0 1-1.5-2.6v-9a3 3 0 0 1 3-3Z" />);export const ArchiveIcon = productIcon("archive", <><rect x="3" y="3.5" width="18" height="4.5" rx="1.5" /><path d="M4.5 8v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8M9 12h6" /></>);export const SettingsIcon = productIcon("settings", <><path d="M10 3h4l.6 2.4 2.1 1.2 2.4-.7 2 3.5-1.8 1.7v1.8l1.8 1.7-2 3.5-2.4-.7-2.1 1.2L14 21h-4l-.6-2.4-2.1-1.2-2.4.7-2-3.5 1.8-1.7v-1.8L2.9 9.4l2-3.5 2.4.7 2.1-1.2L10 3Z" /><circle cx="12" cy="12" r="3" /></>);export const OverviewIcon = productIcon("overview", <><rect x="3" y="3" width="18" height="18" rx="3" /><path d="M3 9h18M9 9v12m4-4v-3m4 3v-5" /><path d="M6 6h.01" /></>);