From b59377f9bd282ca8cbb1d5224db7c5294d760a1e Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 3 Mar 2025 12:48:50 +0500 Subject: [PATCH] web: minor ui changes and fixes --- apps/web/src/app.tsx | 2 +- apps/web/src/components/editor/action-bar.tsx | 4 +- .../src/components/navigation-menu/index.tsx | 11 +++--- .../navigation-menu/navigation-item.tsx | 37 ++++++++++--------- .../components/navigation-menu/tab-item.tsx | 2 +- apps/web/src/dialogs/settings/index.tsx | 2 +- 6 files changed, 30 insertions(+), 28 deletions(-) diff --git a/apps/web/src/app.tsx b/apps/web/src/app.tsx index 854574ccb..1626b6c83 100644 --- a/apps/web/src/app.tsx +++ b/apps/web/src/app.tsx @@ -163,7 +163,7 @@ function DesktopAppContents() { initialSize={isTablet ? 0 : 250} className={`nav-pane`} snapSize={200} - minSize={40} + minSize={50} maxSize={isTablet ? 0 : 500} style={{ overflow: "initial", diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx index dee87bc56..8946cf6f8 100644 --- a/apps/web/src/components/editor/action-bar.tsx +++ b/apps/web/src/components/editor/action-bar.tsx @@ -272,9 +272,9 @@ const TabStrip = React.memo(function TabStrip() { variant="secondary" {...CREATE_BUTTON_MAP.notes} data-test-id={`create-new-note`} - sx={{ p: 1, bg: "transparent" }} + sx={{ p: 1, bg: "accent" }} > - + {children && !isCollapsed ? children : null} diff --git a/apps/web/src/components/navigation-menu/tab-item.tsx b/apps/web/src/components/navigation-menu/tab-item.tsx index 94a8055c7..e007bc64f 100644 --- a/apps/web/src/components/navigation-menu/tab-item.tsx +++ b/apps/web/src/components/navigation-menu/tab-item.tsx @@ -66,7 +66,7 @@ export function TabItem(props: TabItemProps & FlexProps) { p: 1, flex: 1, alignItems: "center", - justifyContent: "flex-start", + justifyContent: "center", display: "flex" }} title={title} diff --git a/apps/web/src/dialogs/settings/index.tsx b/apps/web/src/dialogs/settings/index.tsx index aa592c050..eea1b2bc8 100644 --- a/apps/web/src/dialogs/settings/index.tsx +++ b/apps/web/src/dialogs/settings/index.tsx @@ -334,7 +334,7 @@ function SettingsSideBar(props: SettingsSideBarProps) { variant={"subBody"} sx={{ fontWeight: "bold", - color: "paragraph-secondary", + color: "heading", mb: 1, ml: 1, overflow: "hidden",