fmt(js): `npm run fix` on merge (#83143)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-08-10 11:07:34 +00:00 committed by GitHub
parent 6735e6a10a
commit 03fa32c92d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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')
})