diff --git a/e2e/board.smoke.spec.ts b/e2e/board.smoke.spec.ts index fea4897..620b09e 100644 --- a/e2e/board.smoke.spec.ts +++ b/e2e/board.smoke.spec.ts @@ -177,4 +177,20 @@ test('move, folder expansion, empty-board pan, desktop wheel zoom, mobile pinch, page.off('dialog', promptHandler) await expect(page.getByRole('heading', { name: 'Browser Template Clone' })).toBeVisible() await expect(page.getByRole('button', { name: 'Reset' })).toBeEnabled() + + await page.setViewportSize({ width: 390, height: 844 }) + const portraitToolbar = await page.locator('.board-actions').boundingBox() + if (!portraitToolbar) throw new Error('Portrait toolbar is not visible') + expect(portraitToolbar.height).toBeGreaterThan(portraitToolbar.width * 2) + expect(portraitToolbar.x).toBeGreaterThan(280) + const portraitMove = await page.getByRole('button', { name: 'MOVE', exact: true }).boundingBox() + const portraitParty = await page.getByRole('button', { name: 'NEW PARTY', exact: true }).boundingBox() + expect(portraitMove).not.toBeNull() + expect(portraitParty).not.toBeNull() + expect(portraitParty!.y).toBeGreaterThan(portraitMove!.y) + + await page.setViewportSize({ width: 844, height: 390 }) + const landscapeToolbar = await page.locator('.board-actions').boundingBox() + if (!landscapeToolbar) throw new Error('Landscape toolbar is not visible') + expect(landscapeToolbar.width).toBeGreaterThan(landscapeToolbar.height * 2) }) diff --git a/src/styles.css b/src/styles.css index dc01bb8..445a922 100644 --- a/src/styles.css +++ b/src/styles.css @@ -259,4 +259,10 @@ button:focus-visible { outline: 2px solid #e99a44; outline-offset: 2px; } .boot { height: 100vh; background: #071916; display: grid; place-content: center; justify-items: center; color: #819b93; font: 11px IBM Plex Mono; letter-spacing: .15em; }.boot .seal { width: 70px; height: 70px; display: grid; place-items: center; border: 2px solid #b87337; color: #d58a46; margin-bottom: 24px; font-weight: 600; }.boot small { color: #4e6a62; } .empty-archive { height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(circle, #123029 0, #071916 65%); color: #9bb0a9; }.empty-archive .seal { width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid #b87337; color: #d58a46; font: 600 14px IBM Plex Mono; margin-bottom: 25px; }.empty-archive small { font: 9px IBM Plex Mono; letter-spacing: .18em; color: #68837b; }.empty-archive h1 { margin: 12px 0 5px; color: #e0e5e1; font: 27px Special Elite; }.empty-archive p { font-size: 12px; }.empty-archive button { margin-top: 18px; display: flex; align-items: center; gap: 8px; background: #1a493d; border: 1px solid #6f8f85; padding: 11px 16px; font: 10px IBM Plex Mono; cursor: pointer; }.empty-archive .hint { margin-top: 20px; color: #718a83; }.empty-archive code { color: #d59450; } @media (max-width: 900px) { .menubar { grid-template-columns: 1fr auto; }.menubar nav { display: none; }.terminal-status { font-size: 0; }.documents-panel { width: 275px; }.documents-panel.closed { margin-left: -275px; }.timeline { grid-template-columns: 115px 1fr; padding: 0 12px; }.timeline-key { display: none; }.timeline-track { margin: 0 23px; }.document-window { width: 80vw; }.case-heading { left: 18px; }.case-number { display: none; }.folder-member, .file-editor-grid { grid-template-columns: 1fr; gap: 7px; } } +@media (max-width: 900px) and (orientation: portrait) { + .board-actions { top: 50%; right: 8px; bottom: auto; left: auto; width: 96px; height: auto; max-height: calc(100% - 20px); padding: 5px; transform: translateY(-50%); flex-direction: column; align-items: stretch; overflow-y: auto; } + .board-actions button { flex: 0 0 36px; width: 100%; padding: 0 7px; justify-content: flex-start; } + .board-actions > span { flex: 0 0 1px; width: 100%; height: 1px; margin: 3px 0; } + .board-actions > b { padding: 2px 0; text-align: center; } +} @media (prefers-reduced-motion: reduce) { .evidence-card.arriving, .brief-concepts section.just-resolved, .connections g.tightening path { animation: none; }.board, .documents-panel, .luggage-tag, .thread-tag-content { transition: none; } }