fix(web): align sidebar logo with macOS traffic light buttons (#586)
Adjust the Electron sidebar header to properly center the T3 wordmark with the native window controls. The logo was sitting ~2px too low and ~8px too close to the traffic lights. - Reduce wordmark container top margin from mt-2 (8px) to mt-1.5 (6px) - Increase Electron header left padding from 82px to 90px for proper traffic light clearance - Match the desktop update button margin to stay aligned Closes #564
This commit is contained in:
1 parent
1c43bad705
commit
a20815ece6
1 file changed
+3
-3
@@ -984,7 +984,7 @@ export default function Sidebar() {
|
||||
const wordmark = (
|
||||
<div className="flex items-center gap-2">
|
||||
<SidebarTrigger className="shrink-0 md:hidden" />
|
||||
<div className="flex min-w-0 flex-1 items-center gap-1 mt-2 ml-1">
|
||||
<div className="flex min-w-0 flex-1 items-center gap-1 mt-1.5 ml-1">
|
||||
<T3Wordmark />
|
||||
<span className="truncate text-sm font-medium tracking-tight text-muted-foreground">
|
||||
Code
|
||||
@@ -1000,7 +1000,7 @@ export default function Sidebar() {
|
||||
<>
|
||||
{isElectron ? (
|
||||
<>
|
||||
<SidebarHeader className="drag-region h-[52px] flex-row items-center gap-2 px-4 py-0 pl-[82px]">
|
||||
<SidebarHeader className="drag-region h-[52px] flex-row items-center gap-2 px-4 py-0 pl-[90px]">
|
||||
{wordmark}
|
||||
{showDesktopUpdateButton && (
|
||||
<Tooltip>
|
||||
@@ -1011,7 +1011,7 @@ export default function Sidebar() {
|
||||
aria-label={desktopUpdateTooltip}
|
||||
aria-disabled={desktopUpdateButtonDisabled || undefined}
|
||||
disabled={desktopUpdateButtonDisabled}
|
||||
className={`inline-flex size-7 ml-auto mt-2 items-center justify-center rounded-md text-muted-foreground transition-colors ${desktopUpdateButtonInteractivityClasses} ${desktopUpdateButtonClasses}`}
|
||||
className={`inline-flex size-7 ml-auto mt-1.5 items-center justify-center rounded-md text-muted-foreground transition-colors ${desktopUpdateButtonInteractivityClasses} ${desktopUpdateButtonClasses}`}
|
||||
onClick={handleDesktopUpdateButtonClick}
|
||||
>
|
||||
<RocketIcon className="size-3.5" />
|
||||
|
||||
Reference in new issue
Block a user