Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

slides: Save primary, ? on the 30px row, wordmark a button, build() stops leaking listeners (#568)

nyblnetc1be04c1be76
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 99a7363d..559ebca4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2050,6 +2050,11 @@ jobs:
# parseDoc fills required fields only where absent and drops elements
# that cannot render; unknown keys and element types survive (additivity).
run: node scripts/test-slides-minimal-doc-browser.mjs
+ - name: Top bar in Chromium
+ # 30px row and 44px phone targets, the wordmark as a named button, Save
+ # primary in both themes, and N language rebuilds leaving one set of
+ # window/document listeners and bar observers.
+ run: node scripts/test-slides-topbar-browser.mjs
spaces-save-browser:
runs-on: ubuntu-latest
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cda4c177..e6e61fc9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,17 @@ pre-1.0.
## [Unreleased]
+- **Save is the top bar's primary button; the bar's other buttons line up.**
+ Save and its save-as caret are now filled with the text colour, like the
+ primary buttons in dialogs, in light and dark themes. The amber
+ unsaved-changes dot has a dark ring so it still shows on the light fill of
+ the dark theme. The ? help button is now the same 36×30 as its neighbours
+ (it was 28×29). The bento/slides wordmark is a real button: it can be
+ reached with Tab, Enter opens About, screen readers name it, and on a phone
+ it is a 44px target. Switching the interface language no longer leaves the
+ old top bar's resize listener, size observer and menu listeners running
+ behind the new one. Found by spaces' top-bar parity check (#567).
+
## [1.2.6] — 2026-10-04
- **Open a PowerPoint deck in Bento: bento.page/import.** Drop a `.pptx` on
diff --git a/scripts/test-slides-topbar-browser.mjs b/scripts/test-slides-topbar-browser.mjs
new file mode 100644
index 00000000..5a5b565a
--- /dev/null
+++ b/scripts/test-slides-topbar-browser.mjs
@@ -0,0 +1,168 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// The slides top bar: on the grid, named, Save primary, and rebuilt without leaking.
+//
+// npm run build:single --prefix slides && node scripts/test-slides-topbar-browser.mjs
+//
+// WHAT THIS PROVES, measured in the packaged document (found by spaces' top-bar
+// parity pass, #567):
+// 1. every bar control sits on the 30px row at desktop width — the ? button
+// was 28×29, sized by its glyph — and clears 44×44 on a phone;
+// 2. the wordmark is a BUTTON with a name: focusable, and Enter opens About.
+// It was a click-only 20×20 div on a phone;
+// 3. Save is primary (maintainer ruling D1): its fill is the theme's --ink
+// and its text --surface, in both themes, reaching 4.5:1; the unsaved dot
+// stays visible on that fill — 3:1 against the ring that borders it (in
+// dark theme the amber dot straight on near-white ink is 1.7:1);
+// 4. build() runs again on every language switch, and each run used to add a
+// window resize listener, a ResizeObserver and eight document pointerdown
+// listeners. After N rebuilds the counts equal the counts after one.
+import assert from 'node:assert/strict'
+const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright')
+
+let checks = 0
+let failures = 0
+function ok(cond, msg) {
+ checks++
+ if (!cond) { failures++; console.log(` FAIL ${msg}`) } else console.log(` ok ${msg}`)
+}
+
+// WCAG relative luminance over computed rgb()/rgba() strings
+const rgb = (s) => s.match(/[\d.]+/g).slice(0, 3).map(Number)
+const lum = ([r, g, b]) => { const c = (v) => { const x = v / 255; return x <= 0.03928 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4 }; return 0.2126 * c(r) + 0.7152 * c(g) + 0.0722 * c(b) }
+const contrast = (a, b) => { const [x, y] = [lum(rgb(a)), lum(rgb(b))].sort((p, q) => q - p); return (x + 0.05) / (y + 0.05) }
+
+const browser = await chromium.launch({ executablePath: process.env.CHROME_PATH, headless: true })
+try {
+ const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } })
+ // Track every ResizeObserver and which elements it watches, so the rig can
+ // count the ones still attached to a top bar after N rebuilds.
+ await ctx.addInitScript(() => {
+ const live = new Set()
+ const RO = window.ResizeObserver
+ window.ResizeObserver = class extends RO {
+ constructor(cb) { super(cb); this.__targets = [] }
+ observe(t, o) { super.observe(t, o); this.__targets.push(t); live.add(this) }
+ disconnect() { super.disconnect(); live.delete(this) }
+ }
+ window.__barObservers = () => [...live].filter((o) => o.__targets.some((t) => t.classList?.contains('ed-topbar'))).length
+ })
+ const p = await ctx.newPage()
+ const errors = []
+ p.on('pageerror', (e) => errors.push(e.message))
+ p.on('dialog', (d) => d.accept())
+ await p.route(/^https?:/, (r) => r.abort())
+ await p.goto(new URL('../slides/dist-single/Bento_Slides.bento.html', import.meta.url).href)
+ await p.waitForFunction(() => window.bento?.doc && document.querySelector('.ed-topbar .ed-btn-help'))
+ await p.evaluate(() => { try { localStorage.setItem('bento-slideshow-started', '1') } catch {} })
+
+ // --- 1. the grid -----------------------------------------------------------
+ console.log('grid: every bar control on the 30px row (1440)\n')
+ const boxes = () => p.evaluate(() => {
+ const out = []
+ for (const el of document.querySelectorAll('.ed-topbar .ed-btn, .ed-topbar .ed-logo')) {
+ if (el.closest('.ed-menu')) continue
+ const r = el.getBoundingClientRect()
+ if (!r.width || getComputedStyle(el).display === 'none') continue
+ out.push({ name: el.title || el.textContent.trim() || el.className, w: +r.width.toFixed(1), h: +r.height.toFixed(1), help: el.classList.contains('ed-btn-help'), logo: el.classList.contains('ed-logo') })
+ }
+ return out
+ })
+ const wide = await boxes()
+ const btns = wide.filter((b) => !b.logo)
+ const off = btns.filter((b) => Math.abs(b.h - 30) > 0.5)
+ ok(btns.length >= 12 && off.length === 0, `${btns.length} buttons, all 30px tall${off.length ? ' — off: ' + off.map((b) => `${b.name} ${b.w}×${b.h}`).join(', ') : ''}`)
+ const help = wide.find((b) => b.help)
+ ok(help && Math.abs(help.w - 36) <= 0.5 && Math.abs(help.h - 30) <= 0.5, `? is 36×30 like its icon neighbours (${help?.w}×${help?.h})`)
+
+ console.log('\ngrid: 44px touch targets (390)\n')
+ await p.setViewportSize({ width: 390, height: 844 })
+ await p.waitForFunction(() => document.querySelector('.ed-topbar')?.classList.contains('ed-bar-fold'))
+ const phone = await boxes()
+ const small = phone.filter((b) => b.w < 43.5 || b.h < 43.5)
+ ok(phone.length >= 6 && small.length === 0, `${phone.length} visible controls incl. the mark, all ≥44×44${small.length ? ' — small: ' + small.map((b) => `${b.name} ${b.w}×${b.h}`).join(', ') : ''}`)
+ const logoBox = phone.find((b) => b.logo)
+ ok(!!logoBox, `the mark is on the phone bar (${logoBox?.w}×${logoBox?.h})`)
+
+ // --- 2. the wordmark is a named button -------------------------------------
+ console.log('\nwordmark: a named, keyboard-reachable button\n')
+ const logo = p.getByRole('button', { name: /About bento\/slides/ })
+ const named = await logo.count() === 1
+ ok(named, 'exactly one button named "About bento/slides…"')
+ ok(await p.evaluate(() => document.querySelector('.ed-logo')?.tagName) === 'BUTTON', 'it is a <button>, not a div with a click handler')
+ if (named) await logo.focus()
+ ok(await p.evaluate(() => document.activeElement?.classList.contains('ed-logo')), 'it takes focus')
+ if (named) await p.keyboard.press('Enter')
+ ok(await p.locator('.ed-about-overlay').count() > 0, 'Enter opens About')
+ await p.keyboard.press('Escape')
+ await p.evaluate(() => document.querySelectorAll('.ed-about-overlay').forEach((o) => o.remove()))
+ await p.setViewportSize({ width: 1440, height: 900 })
+ await p.waitForFunction(() => !document.querySelector('.ed-topbar')?.classList.contains('ed-bar-fold'))
+
+ // --- 3. Save is primary, both themes ---------------------------------------
+ console.log('\nSave: primary (D1) in both themes\n')
+ // one edit makes the deck dirty, so the unsaved dot is on
+ await p.locator('.ed-title').fill('Topbar rig')
+ await p.locator('.ed-title').press('Tab')
+ for (const theme of ['light', 'dark']) {
+ await p.evaluate((th) => { document.documentElement.dataset.theme = th }, theme)
+ const m = await p.evaluate(() => {
+ const probe = (v) => { const d = document.createElement('div'); d.style.color = `var(${v})`; document.body.appendChild(d); const c = getComputedStyle(d).color; d.remove(); return c }
+ const save = document.querySelector('.ed-split > .ed-btn:first-child')
+ const caret = document.querySelector('.ed-split-caret')
+ const dot = document.querySelector('.ed-dirty')
+ const cs = getComputedStyle(save)
+ const ring = getComputedStyle(dot).boxShadow.match(/rgba?\([^)]*\)/)?.[0] ?? ''
+ return {
+ ink: probe('--ink'), surface: probe('--surface'),
+ bg: cs.backgroundColor, fg: cs.color, caretBg: getComputedStyle(caret).backgroundColor,
+ dotOn: dot.classList.contains('on'), dot: getComputedStyle(dot).backgroundColor, ring,
+ }
+ })
+ ok(m.bg === m.ink && m.caretBg === m.ink, `${theme}: Save and its caret are filled with --ink (${m.bg})`)
+ ok(m.fg === m.surface, `${theme}: Save's text is --surface (${m.fg})`)
+ const c = contrast(m.fg, m.bg)
+ ok(c >= 4.5, `${theme}: Save label ${c.toFixed(2)}:1 ≥ 4.5`)
+ ok(m.dotOn, `${theme}: the unsaved dot is on after an edit`)
+ // the dot's edge is its ring, so that is the pair the eye separates; the
+ // bare dot-on-fill figure is printed for the record
+ const dr = m.ring ? contrast(m.dot, m.ring) : 0
+ ok(dr >= 3, `${theme}: unsaved dot ${dr.toFixed(2)}:1 against its ring ≥ 3 (bare on the fill it would be ${contrast(m.dot, m.bg).toFixed(2)}:1)`)
+ }
+ await p.evaluate(() => { delete document.documentElement.dataset.theme })
+
+ // --- 4. rebuilds do not accumulate listeners or observers -------------------
+ console.log('\nrebuild: N language switches leave one set of listeners\n')
+ const cdp = await ctx.newCDPSession(p)
+ const listeners = async (expr, type) => {
+ const { result } = await cdp.send('Runtime.evaluate', { expression: expr })
+ const { listeners: ls } = await cdp.send('DOMDebugger.getEventListeners', { objectId: result.objectId })
+ return ls.filter((l) => l.type === type).length
+ }
+ const snapshot = async () => ({
+ resize: await listeners('window', 'resize'),
+ pointerdown: await listeners('document', 'pointerdown'),
+ observers: await p.evaluate(() => window.__barObservers()),
+ })
+ const switchTo = (label) => p.evaluate((l) => {
+ const b = [...document.querySelectorAll('.ed-lang-menu .ed-btn')].find((x) => x.textContent.trim() === l)
+ if (!b) throw new Error('no language ' + l)
+ b.click()
+ }, label)
+ const other = await p.evaluate(() => [...document.querySelectorAll('.ed-lang-menu .ed-btn')].map((x) => x.textContent.trim()).find((l) => l && l !== 'English' && !l.includes('…')))
+ await switchTo('English') // one rebuild, so both samples are post-rebuild
+ const one = await snapshot()
+ const N = 6
+ for (let i = 0; i < N; i++) await switchTo(i % 2 ? 'English' : other)
+ await switchTo('English')
+ const many = await snapshot()
+ ok(one.resize === many.resize, `window resize listeners: ${one.resize} after one build, ${many.resize} after ${N + 1} more`)
+ ok(one.pointerdown === many.pointerdown, `document pointerdown listeners: ${one.pointerdown} → ${many.pointerdown}`)
+ ok(one.observers === 2 && many.observers === 2, `ResizeObservers on a top bar: ${one.observers} → ${many.observers} (fit + bar-bottom)`)
+ ok(await p.evaluate(() => document.querySelectorAll('.ed-topbar').length) === 1, 'one top bar in the document')
+
+ assert.deepEqual(errors, [])
+} finally { await browser.close() }
+
+console.log(`\n${checks - failures}/${checks} checks passed`)
+process.exit(failures ? 1 : 0)
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index 2cbca352..4cc81012 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -277,12 +277,26 @@ export class Editor {
// --- DOM ----------------------------------------------------------------
private build() {
+ // Everything the previous build hung on window, document or the store dies
+ // with its DOM. build() runs again on every language switch, and each run
+ // used to add another resize listener, another ResizeObserver and eight
+ // outside-press listeners that kept the old bar alive and re-fitted it.
+ this.buildScope.abort()
+ this.buildScope = new AbortController()
+ for (const o of this.buildObservers) o.disconnect()
+ this.buildObservers = []
this.root.innerHTML = ''
this.root.className = 'ed-root'
// topbar
const bar = div('ed-topbar')
- const logo = div('ed-logo')
+ // A real button: it opens About, so it takes focus, answers Enter/Space and
+ // has a name a screen reader can read (the visible word is hidden at the
+ // tight tier and on phones, leaving only the mark).
+ const logo = document.createElement('button')
+ logo.type = 'button'
+ logo.className = 'ed-logo'
+ logo.setAttribute('aria-label', t('About bento/slides — version, updates, licenses'))
logo.innerHTML =
`<svg class="ed-logo-mark" viewBox="0 0 32 32" width="20" height="20" aria-hidden="true">` +
`<rect width="32" height="32" rx="7" fill="#16273E"/>` +
@@ -291,7 +305,6 @@ export class Editor {
`<rect x="14" y="17" width="13" height="10" rx="2.5" fill="#F0EBE0"/>` +
`</svg> <b>bento<span style="color:#FF9E8A">/</span>slides</b>`
logo.title = t('About bento/slides — version, updates, licenses')
- logo.style.cursor = 'pointer'
logo.addEventListener('click', () => this.openAbout())
const title = document.createElement('input')
title.className = 'ed-title'
@@ -303,12 +316,13 @@ export class Editor {
this.syncWindowTitle()
})
// remote/programmatic title changes reflect live (unless being typed in)
- this.store.on('doc', () => {
+ const offTitle = this.store.on('doc', () => {
if (document.activeElement !== title && title.value !== this.store.doc.title) {
title.value = this.store.doc.title
this.syncWindowTitle()
}
})
+ this.buildScope.signal.addEventListener('abort', offTitle)
// The FILE this deck is open as — deliberately separate from the deck
// title above, because the two drift apart constantly (rename the deck and
@@ -466,7 +480,7 @@ export class Editor {
pill.append(showB, caret, pmenu)
document.addEventListener('pointerdown', (ev) => {
if (!pill.contains(ev.target as Node)) pill.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
// shared bottom-right cluster: [Slideshow pill] [zoom pill] — the canvas
// appends its zoombar to canvasWrap; we adopt it into the cluster below.
const corner = div('ed-corner-br')
@@ -518,15 +532,14 @@ export class Editor {
// under CDP-driven viewport changes, and a phone ROTATING is exactly this
// path); the plain resize listener is belt and braces on top. fitTopbar
// is idempotent, so the overlap costs a few reads.
- this.barRO?.disconnect()
+ const signal = this.buildScope.signal
this.barRO = new ResizeObserver(() => this.fitTopbar())
this.barRO.observe(bar)
- window.addEventListener('resize', () => this.fitTopbar())
+ window.addEventListener('resize', () => this.fitTopbar(), { signal })
// The bar's CONTENT changes width too, at a constant viewport (avatars
// join, the update chip appears, the file chip fills in, the "Saved" tag
// flashes), and each of these used to clip the end of the bar. fitTopbar
// drops the records its own mutations queue, so this cannot loop.
- this.barMO?.disconnect()
this.barMO = new MutationObserver(() => this.fitTopbar())
this.barMO.observe(bar, {
childList: true, subtree: true, characterData: true,
@@ -540,8 +553,10 @@ export class Editor {
// differ per device and change when the phone rotates.
const publishBarBottom = () =>
this.root.style.setProperty('--ed-bar-bottom', `${Math.round(bar.getBoundingClientRect().bottom)}px`)
- new ResizeObserver(publishBarBottom).observe(bar)
- window.addEventListener('resize', publishBarBottom)
+ const bottomRO = new ResizeObserver(publishBarBottom)
+ bottomRO.observe(bar)
+ window.addEventListener('resize', publishBarBottom, { signal })
+ this.buildObservers.push(this.barRO, this.barMO, bottomRO)
publishBarBottom()
this.wireDrawerDismiss()
@@ -751,6 +766,10 @@ export class Editor {
private topbar: HTMLElement | null = null
private barRO: ResizeObserver | null = null
private barMO: MutationObserver | null = null
+ /** Scope of one build(): aborted by the next, so the window/document/store
+ * listeners the bar and its dropdowns register never outlive their DOM. */
+ private buildScope = new AbortController()
+ private buildObservers: (ResizeObserver | MutationObserver)[] = []
/**
* Size the topbar by MEASURING it, not by width breakpoints. Breakpoints
@@ -837,7 +856,7 @@ export class Editor {
private closeOnOutsidePress(wrap: HTMLElement) {
document.addEventListener('pointerdown', (ev) => {
if (!wrap.contains(ev.target as Node)) wrap.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
}
/**
@@ -859,7 +878,7 @@ export class Editor {
if (target instanceof Element && target.closest('.ed-topbar')) return
if (!this.sidebar.contains(target)) this.closePanel('left')
if (!this.props.contains(target)) this.closePanel('right')
- }, true)
+ }, { capture: true, signal: this.buildScope.signal })
}
// --- Save dropdown: copy / new deck / template -----------------------------
@@ -879,7 +898,7 @@ export class Editor {
wrap.append(trigger, menu)
document.addEventListener('pointerdown', (ev) => {
if (!wrap.contains(ev.target as Node)) wrap.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
return wrap
}
@@ -1317,7 +1336,7 @@ export class Editor {
wrap.append(this.shareB, panel)
document.addEventListener('pointerdown', (ev) => {
if (!wrap.contains(ev.target as Node)) wrap.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
return wrap
}
@@ -1760,7 +1779,7 @@ export class Editor {
wrap.append(trigger, menu)
document.addEventListener('pointerdown', (ev) => {
if (!wrap.contains(ev.target as Node)) wrap.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
return wrap
}
@@ -1781,7 +1800,7 @@ export class Editor {
wrap.append(trigger, menu)
document.addEventListener('pointerdown', (ev) => {
if (!wrap.contains(ev.target as Node)) wrap.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
return wrap
}
@@ -2253,7 +2272,7 @@ export class Editor {
wrap.append(trigger, menu)
document.addEventListener('pointerdown', (ev) => {
if (!wrap.contains(ev.target as Node)) wrap.classList.remove('open')
- })
+ }, { signal: this.buildScope.signal })
return wrap
}
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 88ef3986..8e2590bd 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -181,7 +181,12 @@ option { background: var(--field); color: var(--ink); }
z-index: 50;
}
-.ed-logo { display: flex; align-items: center; gap: 7px; font-size: 15px; white-space: nowrap; }
+/* A <button> (it opens About), dressed as the wordmark: none of a button's
+ own fill, border or padding, and the bar's ink rather than the UA's. */
+.ed-logo {
+ display: flex; align-items: center; gap: 7px; font: inherit; font-size: 15px; white-space: nowrap;
+ color: var(--ink); background: none; border: 0; padding: 0; border-radius: 6px; cursor: pointer;
+}
.ed-logo-mark { display: block; border-radius: 5px; }
.ed-title {
@@ -226,7 +231,13 @@ option { background: var(--field); color: var(--ink); }
width: 7px; height: 7px; border-radius: 50%;
background: transparent; pointer-events: none;
}
-.ed-dirty.on { background: var(--accent); }
+/* Save is ink-filled (D1), and in dark theme --ink is near-white: the amber dot
+ alone measured 1.7:1 on it. A ring in the brand navy (the logo mark's tile)
+ is dark in BOTH themes — on light it merges into the ink fill, on dark it
+ parts the dot from it. A --surface ring failed the other way: white beside
+ amber is 2.0:1 in light. Dot:ring and ring:fill both clear 3:1
+ (scripts/test-slides-topbar-browser.mjs). */
+.ed-dirty.on { background: var(--accent); box-shadow: 0 0 0 1.5px #16273e; }
.ed-split > .ed-btn:first-child { position: relative; }
.ed-group { display: flex; align-items: center; gap: 6px; }
@@ -1032,6 +1043,9 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
/* --- help overlay + help button ------------------------------------------- */
.ed-btn-help .ed-help-q { font-size: 15px; font-weight: 800; line-height: 1; }
+/* The glyph is narrower and shorter than a 16px icon, so without a floor the
+ button came out 28×29 beside 36×30 neighbours. */
+.ed-btn-help { min-width: 36px; min-height: 30px; justify-content: center; }
.ed-help-box { width: 700px; max-width: 92vw; }
/* two hand-placed columns so the (now longer) list stays short vertically */
.ed-help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: start; }
@@ -1946,14 +1960,18 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
/* Save is a split button: [ Save |▾] one visual unit. The caret button is
NESTED inside the .ed-dropdown wrapper, so stretch through the wrapper. */
.ed-split { display: inline-flex; align-items: stretch; }
+/* PRIMARY (maintainer ruling D1, both apps): saving is the act every session
+ ends with, so Save and its caret are one ink-filled unit — the same inverse
+ pairing as .ed-btn-primary (--surface on --ink: 14.5:1 light, 12.6:1 dark). */
.ed-split > .ed-btn:first-child {
border-start-start-radius: 8px;
border-end-start-radius: 8px;
border-start-end-radius: 0;
border-end-end-radius: 0;
- border: 1px solid var(--line);
+ border: 1px solid var(--ink);
border-inline-end: none;
- background: var(--chrome);
+ background: var(--ink);
+ color: var(--surface);
}
.ed-split .ed-dropdown { display: flex; align-items: stretch; }
.ed-split-caret {
@@ -1964,11 +1982,14 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
border-end-start-radius: 0;
border-start-end-radius: 8px;
border-end-end-radius: 8px;
- border: 1px solid var(--line);
- background: var(--chrome);
+ border: 1px solid var(--ink);
+ /* a hairline in the text colour divides the two halves on the ink */
+ border-inline-start-color: color-mix(in srgb, var(--surface) 35%, var(--ink));
+ background: var(--ink);
+ color: var(--surface);
padding: 6px 7px;
}
-.ed-split .ed-btn:hover { background: var(--chrome-2); }
+.ed-split .ed-btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.ed-caret { font-size: 10px; line-height: 1; }
/* quiet divider between share actions and advanced session controls */
@@ -2248,7 +2269,7 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
.ed-topbar.ed-bar-fold .ed-split > .ed-btn:first-child {
border-start-end-radius: 8px;
border-end-end-radius: 8px;
- border-inline-end: 1px solid var(--line);
+ border-inline-end: 1px solid var(--ink);
}
/* ⋯ carries the demoted buttons AND that list, so it can outgrow the
screen in BOTH directions.
@@ -2310,6 +2331,8 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
}
/* HIG touch targets — a 36px icon is a mis-tap on glass */
.ed-topbar .ed-btn { min-width: 44px; min-height: 44px; justify-content: center; }
+ /* the wordmark is a button too (About), and on a phone it is the mark alone */
+ .ed-topbar .ed-logo { min-width: 44px; min-height: 44px; justify-content: center; }
.ed-topbar .ed-menu .ed-btn { min-width: 0; } /* menu rows are text, not targets */
.ed-title { flex: 0 1 220px; }
.ed-phone-tools {