fix(app): match production titlebar spacing (#57776)

This commit is contained in:
usrnk1
2026-10-21 14:29:13 +02:00
committed by GitHub
Unverified
parent 95d8e4a693
commit 9692320cda
+7 -3
View File
@@ -16,7 +16,7 @@ import { useSettings } from "@/settings/model"
import { WindowsAppMenu } from "./windows-menu"
import { applyPath, backPath, forwardPath, type HistoryLocation } from "./history"
import { TitlebarTabStrip } from "@/shell/titlebar/tab-strip"
import { macTrafficLightsBaseWidth, macVerticalTrafficLights, SidebarToggle } from "@/shell/sidebar-toggle"
import { macVerticalTrafficLights, SidebarToggle } from "@/shell/sidebar-toggle"
import { SidebarInbox } from "@/shell/titlebar/inbox"
import { makeEventListener } from "@solid-primitives/event-listener"
import { createMediaQuery } from "@solid-primitives/media"
@@ -44,6 +44,8 @@ const minTitlebarZoom = 0.25
const windowsControlsBaseWidth = 138 // 3 native Windows caption buttons at 46px each.
const macTrafficLightsBaseWidth = 68
const macTrafficLightsTopClearance = 28
// Matches the desktop window's `trafficLightPosition`.
@@ -605,8 +607,10 @@ export function Titlebar(props: { verticalTabs?: { mount?: HTMLElement } }) {
<SidebarToggle />
</Show>
<Show when={!mobile() && !props.verticalTabs}>
{homeButton()}
{searchButton()}
<div class="flex shrink-0 items-center gap-0">
{homeButton()}
{searchButton()}
</div>
</Show>
<Show