Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Meetings: the page title and list stay still when the hidden sidebar peeks out

Eric Brownrout267014d39630
diff --git a/app/e2e/home.spec.ts b/app/e2e/home.spec.ts
index cce2b1e4..f2f94c42 100644
--- a/app/e2e/home.spec.ts
+++ b/app/e2e/home.spec.ts
@@ -367,6 +367,48 @@ test('meeting rows fill a laptop pane and stay centred in their own column throu
} finally { await app.close() }
})
+test('the Meetings title and first row stay in place when the sidebar peeks', async () => {
+ const { app, page } = await launch()
+ try {
+ await fake(app, 'manyMeetings', { n: 2, clean: true })
+ await page.reload()
+ const title = page.getByRole('heading', { name: 'Your meetings', exact: true })
+ const row = page.getByTestId('past-note').first()
+ const search = page.getByRole('button', { name: 'Search meetings', exact: true })
+ const workspace = page.getByTestId('workspace')
+ const boxes = () => Promise.all([title.boundingBox(), row.boundingBox()])
+ await expect(row).toBeVisible()
+ await expect(page.locator('.library-load')).toHaveAttribute('data-loading-phase', 'ready')
+
+ // At 900px pinning also takes the content pane across its 700px breakpoint.
+ for (const [colorScheme, width] of [['light', 1440], ['dark', 900]] as const) {
+ await page.setViewportSize({ width, height: 900 })
+ await page.emulateMedia({ colorScheme, reducedMotion: 'no-preference' })
+ await expect(search).toBeHidden()
+ const pinned = await boxes()
+ await page.getByTestId('sidebar-collapse').press('Enter')
+ await expect(search).toBeVisible()
+ const collapsed = await boxes()
+ // Pinning changes the list width but preserves both vertical positions.
+ expect(collapsed.map(box => box!.y)).toEqual(pinned.map(box => box!.y))
+
+ await page.mouse.move(12, 200)
+ await expect(workspace).toHaveAttribute('data-peeking', 'true')
+ await expect(search).toBeVisible()
+ expect(await boxes()).toEqual(collapsed)
+ await page.getByTestId('search-open').hover()
+ await page.mouse.move(720, 200)
+ await expect(workspace).toHaveAttribute('data-peeking', 'false')
+ await expect(search).toBeVisible()
+ expect(await boxes()).toEqual(collapsed)
+
+ await page.getByTestId('sidebar-expand').press('Enter')
+ await expect(search).toBeHidden()
+ expect(await boxes()).toEqual(pinned)
+ }
+ } finally { await app.close() }
+})
+
test('wide Home with both sidebars hidden in light and dark', async ({}, testInfo) => {
const { app, page } = await launch()
try {
diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.css
index b6c73e8d..166ccfdf 100644
--- a/app/src/renderer/src/workspace.css
+++ b/app/src/renderer/src/workspace.css
@@ -159,6 +159,8 @@
.workspace:dir(rtl) .workspace-toolbar:has(.notes-download-status) { padding-inline-end:132px; }
.workspace:dir(rtl) .workspace-toolbar[data-note=true]:has(.notes-download-status) { padding-inline-end:185px; }
.native-library { position:relative;padding:29px 26px 30px;min-width:0;overflow:auto; }
+/* Pinning the sidebar can cross the narrow-pane breakpoint without resizing the window. */
+.native-home>.native-library { padding-top:29px; }
/* Keep the scroll area full width. The hover background extends 8px past the content on each side. */
:is(.native-home,.native-folder)>.native-library>* { --meeting-list-max-width:1080px;inline-size:min(100%,calc(var(--meeting-list-max-width) - 16px));margin-inline:auto; }
.native-library>h1 { font-size:20px;line-height:26px;font-weight:600;letter-spacing:-.55px;margin-bottom:9px; }
@@ -397,7 +399,8 @@
.folder-glyph { display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--folder-ink); }
.folder-preview-tile,.folder-heading-icon { background:var(--folder-tint);color:var(--folder-ink); }
.library-page-heading { display:flex;align-items:center;gap:12px;margin-bottom:9px; }
-.workspace:not(.sidebar-collapsed) .home-search,.workspace[data-peeking=true] .home-search { display:none; }
+.native-home .library-page-heading { height:var(--button-height); }
+.workspace:not(.sidebar-collapsed) .home-search { display:none; }
.library-page-heading h1 { min-width:0;font-size:20px;line-height:26px;font-weight:600;letter-spacing:-.55px; }
.library-page-heading h1 input { font:inherit;letter-spacing:inherit; }
.folder-heading-icon { display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;border:1px solid color-mix(in srgb,var(--folder-ink) 15%,transparent); }
diff --git a/app/test/narrowAgenda.test.ts b/app/test/narrowAgenda.test.ts
index 8d5a4281..7a70cd24 100644
--- a/app/test/narrowAgenda.test.ts
+++ b/app/test/narrowAgenda.test.ts
@@ -3,6 +3,11 @@ import { expect, it } from 'vitest'
const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')
+it('reserves the search button height in the Meetings header when the sidebar is pinned', () => {
+ expect(css).toMatch(/\.native-home \.library-page-heading \{[^}]*height:var\(--button-height\);/)
+ expect(css).toContain('.workspace:not(.sidebar-collapsed) .home-search { display:none; }')
+})
+
it('scrolls the agenda header and events together within the narrow grid row', () => {
const narrow = css.slice(css.indexOf('@container (max-width:520px)')).split(/^}/m)[0]
expect(narrow).toMatch(/\.native-agenda\s*\{[^}]*overflow-y:\s*auto/)