diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsx index 88f55cc71801c..8825d8e8adf02 100644 --- a/apps/desktop/src/app/contrib/wiring.tsx +++ b/apps/desktop/src/app/contrib/wiring.tsx @@ -980,9 +980,7 @@ export function ContribWiring({ children }: { children: ReactNode }) { const systemToolsWidth = titlebarToolsWidthCss(SYSTEM_TOOL_COUNT) const titlebarToolsWidth = - paneToolCount > 0 - ? `calc(${systemToolsWidth} + ${titlebarToolsWidthCss(paneToolCount)})` - : systemToolsWidth + paneToolCount > 0 ? `calc(${systemToolsWidth} + ${titlebarToolsWidthCss(paneToolCount)})` : systemToolsWidth return ( diff --git a/apps/desktop/src/app/shell/titlebar-controls.tsx b/apps/desktop/src/app/shell/titlebar-controls.tsx index dd51a3f5176cc..b0b6b832ca89f 100644 --- a/apps/desktop/src/app/shell/titlebar-controls.tsx +++ b/apps/desktop/src/app/shell/titlebar-controls.tsx @@ -22,7 +22,12 @@ import { import { appViewForPath, isOverlayView } from '../routes' -import { TITLEBAR_ICON_BADGE_SCALE, titlebarButtonClass, titlebarIconSizeCss, titlebarToolClusterClass } from './titlebar' +import { + TITLEBAR_ICON_BADGE_SCALE, + titlebarButtonClass, + titlebarIconSizeCss, + titlebarToolClusterClass +} from './titlebar' import { TitlebarIcon } from './titlebar-icon' export interface TitlebarTool { diff --git a/apps/desktop/src/app/shell/titlebar.ts b/apps/desktop/src/app/shell/titlebar.ts index 63e902d3bfd4d..1099ad5eb91a4 100644 --- a/apps/desktop/src/app/shell/titlebar.ts +++ b/apps/desktop/src/app/shell/titlebar.ts @@ -15,6 +15,7 @@ export const TITLEBAR_CONTROLS_TOP = (TITLEBAR_HEIGHT - TITLEBAR_CONTROL_HEIGHT) export function titlebarIconSizeCss(scale = 1): string { return `${TITLEBAR_ICON_SIZE * scale}px` } + export const TITLEBAR_FALLBACK_WINDOW_BUTTON_X = 24 // Edge inset used when no left-side native controls take up that space — // Windows/Linux (native overlay is on the right) and macOS fullscreen