From bf70129fb6dffee7aaff3a72766e104234955cf0 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 5 Feb 2025 11:00:36 +0530 Subject: [PATCH] Fix the actual issue --- web/apps/photos/src/pages/gallery.tsx | 14 ++++++-------- web/packages/base/components/Navbar.tsx | 21 ++++++--------------- web/packages/base/components/utils/theme.ts | 2 +- 3 files changed, 13 insertions(+), 24 deletions(-) diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index ebc2cb0df0..8463813a1a 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -1,7 +1,7 @@ import { sessionExpiredDialogAttributes } from "@/accounts/components/utils/dialog"; import { stashRedirect } from "@/accounts/services/redirect"; import type { MiniDialogAttributes } from "@/base/components/MiniDialog"; -import { AppNavbar, NavbarBase } from "@/base/components/Navbar"; +import { NavbarBaseNormalFlow } from "@/base/components/Navbar"; import { TranslucentLoadingOverlay } from "@/base/components/loaders"; import type { ButtonishProps } from "@/base/components/mui"; import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton"; @@ -900,7 +900,6 @@ const Page: React.FC = () => { getZipFileSelectorInputProps, }} /> - {blockingLoad && } {isFirstLoad && ( @@ -942,12 +941,11 @@ const Page: React.FC = () => { files={fixCreationTimeFiles} /> - {barMode == "hidden-albums" ? ( @@ -970,7 +968,7 @@ const Page: React.FC = () => { }} /> )} - + {isOffline && } ` min-height: 64px; @@ -16,7 +18,7 @@ export const NavbarBase = styled(FlexWrapper)( top: 0; left: 0; z-index: 10; - border-bottom: 1px solid ${theme.vars.palette.stroke.fainter}; + border-bottom: 1px solid ${theme.vars.palette.divider}; background-color: ${theme.vars.palette.background.default}; margin-bottom: 16px; padding: 0 24px; @@ -26,24 +28,13 @@ export const NavbarBase = styled(FlexWrapper)( `, ); -// TODO: Prune -export const AppNavbar: React.FC = () => { - return ( - - - - - - ); -}; - export const NavbarBaseNormalFlow = styled("div")( ({ theme }) => ` flex: 0 0 64px; display: flex; justify-content: center; align-items: center; - border-bottom: 1px solid ${theme.vars.palette.stroke.fainter}; + border-bottom: 1px solid ${theme.vars.palette.divider}; `, ); diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts index 96f8649d66..7eda829c3e 100644 --- a/web/packages/base/components/utils/theme.ts +++ b/web/packages/base/components/utils/theme.ts @@ -228,7 +228,7 @@ const _colors = { base: "#fff", muted: "rgba(255 255 255 / 0.24)", faint: "rgba(255 255 255 / 0.16)", - fainter: "rgba(255 255 255 / 0.10)", + fainter: "rgba(255 255 255 / 0.12)", }, boxShadow: { paper: "0px 2px 12px rgba(0 0 0 / 0.75)",