From 00be0363c6c0c3ed64c7c677d5bfa2c8670b314d Mon Sep 17 00:00:00 2001 From: Trae User Date: Fri, 18 Sep 2026 14:27:49 +0800 Subject: [PATCH 1/4] fix: align sidebar icons --- web/src/components/Sidebar.jsx | 14 +++++++------- web/src/components/TopBar.jsx | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/web/src/components/Sidebar.jsx b/web/src/components/Sidebar.jsx index 76e49cd25..1afcf4035 100644 --- a/web/src/components/Sidebar.jsx +++ b/web/src/components/Sidebar.jsx @@ -505,7 +505,7 @@ function SidebarNavItem({ item, onClick }) { data-tour-target={item.id === 'new-task' ? 'sidebar-new-task' : undefined} onPointerDown={item.id === 'new-task' ? preserveHomeComposerFocus : undefined} onClick={onClick} - className="ace-sidebar-primary-text w-full flex items-center gap-[7px] px-3 py-[3px] rounded-md text-[14px] text-fg hover:bg-surface-hi transition text-left" + className="ace-sidebar-primary-text w-full flex items-center gap-[7px] pl-[19px] pr-3 py-[3px] rounded-md text-[14px] text-fg hover:bg-surface-hi transition text-left" > @@ -590,7 +590,7 @@ function CustomSidebarSection({ workspaceHash = '', onOpenSettingsSection, onOpe type="button" onClick={() => setExpanded((value) => !value)} data-sidebar-custom-section="true" - className="ace-sidebar-extensions-trigger ace-sidebar-primary-text w-full flex items-center gap-[7px] px-3 py-[3px] rounded-md text-[14px] text-fg hover:bg-surface-hi transition" + className="ace-sidebar-extensions-trigger ace-sidebar-primary-text w-full flex items-center gap-[7px] pl-[19px] pr-3 py-[3px] rounded-md text-[14px] text-fg hover:bg-surface-hi transition" aria-expanded={expanded} aria-controls={listId} > @@ -627,7 +627,7 @@ function SidebarSectionHeader({ sectionId, count, expanded, onToggle, actions = return (
{tabsOverflow && addButton}
- {sidePanelListCollapsed && onToggleSidePanelList && ( - - )} + {sidePanelListCollapsed && onToggleSidePanelList && ( + + )}
diff --git a/web/src/components/SettingsPage.jsx b/web/src/components/SettingsPage.jsx index c35bc37fe..8518693bd 100644 --- a/web/src/components/SettingsPage.jsx +++ b/web/src/components/SettingsPage.jsx @@ -3096,7 +3096,7 @@ function SectionUsage() { ]; return ( - <> +

使用情况