From 03fa32c92dd445eb64c7f67434dd91b32c40701d Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 11:07:34 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#83143) Co-authored-by: github-actions[bot] --- apps/desktop/src/app/contrib/wiring.tsx | 9 ++++++++- apps/desktop/src/app/shell/titlebar.test.ts | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsx index 1b218f387d9ea..11583b635cde4 100644 --- a/apps/desktop/src/app/contrib/wiring.tsx +++ b/apps/desktop/src/app/contrib/wiring.tsx @@ -112,7 +112,12 @@ import { useSessionStateCache } from '../session/hooks/use-session-state-cache' import { startWorkspaceSession } from '../session/workspace-session-target' import { useOverlayRouting } from '../shell/hooks/use-overlay-routing' import { useWindowControlsOverlayWidth } from '../shell/hooks/use-window-controls-overlay-width' -import { titlebarControlsPosition, titlebarControlsYNudge, titlebarToolsRightCss, titlebarToolsWidthCss } from '../shell/titlebar' +import { + titlebarControlsPosition, + titlebarControlsYNudge, + titlebarToolsRightCss, + titlebarToolsWidthCss +} from '../shell/titlebar' import { TitlebarControls } from '../shell/titlebar-controls' import { UpdatesOverlay } from '../updates-overlay' @@ -971,11 +976,13 @@ export function ContribWiring({ children }: { children: ReactNode }) { // prefer the live WCO measurement, fall back to the static reservation). const measuredOverlayWidth = useWindowControlsOverlayWidth() const nativeOverlayWidth = measuredOverlayWidth ?? connection?.nativeOverlayWidth ?? 0 + const titlebarChrome = { darwinMajor: connection?.darwinMajor ?? 0, isFullscreen: Boolean(connection?.isFullscreen), windowButtonPosition: connection?.windowButtonPosition } + const titlebarToolsRight = titlebarToolsRightCss(nativeOverlayWidth, titlebarChrome) // Pane-registered tools (preview's monitor/devtools cluster) anchor flush // against the static system cluster — in the tree layout the titlebar band diff --git a/apps/desktop/src/app/shell/titlebar.test.ts b/apps/desktop/src/app/shell/titlebar.test.ts index d15b3e3b5ec39..3531adb08b40d 100644 --- a/apps/desktop/src/app/shell/titlebar.test.ts +++ b/apps/desktop/src/app/shell/titlebar.test.ts @@ -53,9 +53,9 @@ describe('titlebarControlsYNudge', () => { }) it('stays flat on Tahoe, Windows/Linux, and macOS fullscreen', () => { - expect(titlebarControlsYNudge({ windowButtonPosition: { x: 24, y: 10 }, darwinMajor: MACOS_TAHOE_DARWIN_MAJOR })).toBe( - '0px' - ) + expect( + titlebarControlsYNudge({ windowButtonPosition: { x: 24, y: 10 }, darwinMajor: MACOS_TAHOE_DARWIN_MAJOR }) + ).toBe('0px') expect(titlebarControlsYNudge({ windowButtonPosition: null })).toBe('0px') expect(titlebarControlsYNudge({ windowButtonPosition: { x: 24, y: 10 }, isFullscreen: true })).toBe('0px') })