fix: align macOS header controls

This commit is contained in:
lucaronin
2026-05-02 00:02:48 +02:00
parent bb09fcfd6f
commit 802b6b77d9
25 changed files with 443 additions and 27 deletions

View File

@@ -32,6 +32,12 @@ vi.mock('@tauri-apps/api/webviewWindow', () => ({
},
}))
vi.mock('@tauri-apps/api/dpi', () => ({
LogicalPosition: class MockLogicalPosition {
constructor(public x: number, public y: number) {}
},
}))
describe('openNoteWindow', () => {
beforeEach(() => {
vi.clearAllMocks()
@@ -73,6 +79,7 @@ describe('openNoteWindow', () => {
height: 700,
resizable: true,
titleBarStyle: 'overlay',
trafficLightPosition: expect.objectContaining({ x: 18, y: 24 }),
hiddenTitle: true,
decorations: true,
}),