fix(Navbar): adjust min-height calculation for fullscreen mode on Mac (#10990)

Ensure the navbar height is correctly calculated when toggling fullscreen mode on macOS by considering the $isFullScreen prop

(cherry picked from commit 7bcae6fba2)
This commit is contained in:
Phantom 2025-10-28 10:29:28 +08:00 committed by dev
parent cd26190fe9
commit 2529662a29

View File

@ -65,7 +65,7 @@ const NavbarContainer = styled.div<{ $isFullScreen: boolean }>`
min-width: 100%;
display: flex;
flex-direction: row;
min-height: ${isMac ? 'env(titlebar-area-height)' : 'var(--navbar-height)'};
min-height: ${({ $isFullScreen }) => (!$isFullScreen && isMac ? 'env(titlebar-area-height)' : 'var(--navbar-height)')};
max-height: var(--navbar-height);
margin-left: ${isMac ? 'calc(var(--sidebar-width) * -1)' : 0};
padding-left: ${({ $isFullScreen }) =>