fix: align hamburger menu with macOS traffic light buttons (#8300)

Signed-off-by: ayush-that <ayush1337@hotmail.com>
This commit is contained in:
shydev
2026-04-08 22:17:31 +05:30
committed by GitHub
parent 48a646c742
commit fd825d2911
@@ -146,8 +146,8 @@ const AppLayoutContent: React.FC<AppLayoutContentProps> = ({ activeSessions }) =
};
}, [isPushTopNav]);
// Calculate padding based on macOS traffic lights
const headerPadding = safeIsMacOS ? 'pl-21' : 'pl-4';
const headerPadding = safeIsMacOS ? 'pl-[96px]' : 'pl-4';
const headerTop = safeIsMacOS ? 'top-[15px]' : 'top-[11px]';
// Determine flex direction based on navigation position (for push mode)
const getLayoutClass = () => {
@@ -201,7 +201,7 @@ const AppLayoutContent: React.FC<AppLayoutContentProps> = ({ activeSessions }) =
? 'bottom-4 right-6'
: cn(
headerPadding,
'top-[11px]',
headerTop,
navigationPosition === 'right' ? 'right-6 left-auto' : 'ml-1.5'
)
)}