Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
spaces: slimmer top bar — Reading view floats, Graph on the page list, Properties out (#799)
nyblnet8f5b9ab3d9bb
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.mdindex f67e7c6b..bcae36dd 100644--- a/docs/DECISIONS.md+++ b/docs/DECISIONS.md@@ -11340,6 +11340,32 @@ shell it serves (gate 1, A2).Still for a real phone: TEE and StrongBox residency (the emulator reportssoftware keys), and the API 26–29 consent path, which allows biometrics only.+## 2026-10-20 — spaces top bar: Reading view → floating button, Properties out (⋯ and ]), Graph → page-list header, Search stays — maintainer, 2026-10-20++The maintainer ruled that bento/spaces' top bar should come closer to slides'+(slides is the chrome reference). This supersedes the line in the+2026-09-26 entry that made Graph "a bar button beside Reading view".++- **Reading view is a floating pill**, shaped as slides' Slideshow pill+ (`.ed-present-pill`: surface fill, hairline, 999px radius, the same soft+ shadow, 600 weight, `--chrome` on hover) and placed in slides' corner:+ bottom-END, 14px in, by a logical inset so RTL mirrors it. It hangs off the+ page's own end edge (a zero-width box between the page and the properties+ panel), so it moves with the panel instead of covering it. It is the way out+ of reading view as well as in, so it stays there while reading. A sealed+ reading copy has no pill, as it had no bar button.+- **Properties left the bar.** Where the panel is a column, its chevron is+ docked flush to the window edge when shut (the 5px-strip problem that once+ justified a bar button no longer exists), and `]` toggles it. Folded, ⋯+ keeps the Properties row.+- **Graph is on the page list's header**, beside + ▾. It is a view of the+ tree, and it stays there in reading view. `bento.graph()` is unchanged.+- **Search stays in the bar.** ⋯ no longer lists Reading view or Graph.++test-spaces-chrome reads the pill's values from slides' stylesheet and holds+the computed pill to them at 1440 and 390. It presses each new home with+trusted input, and its before/after command walk maps each moved command to+its new home rather than dropping it.## 2026-10-18 — bento/connect on Android: the recovery code and key blobs (Recovery.kt)The Android port of `kernel/src/recovery.ts` (K2b). It reproduces every byte ofdiff --git a/scripts/test-spaces-chrome.ts b/scripts/test-spaces-chrome.tsindex 1f3126d0..de0aab5c 100644--- a/scripts/test-spaces-chrome.ts+++ b/scripts/test-spaces-chrome.ts@@ -213,6 +213,34 @@ const SLIDES_INS = {}ok(Object.values(SLIDES_INS).every(Boolean), `slides' insert-button values can be read from its source (${JSON.stringify(SLIDES_INS)})`)+// THE READING VIEW PILL IS SLIDES' SLIDESHOW PILL (maintainer, 2026-10-20).+// Reading view left the bar for a floating button, shaped and placed as+// slides' `.ed-present-pill` in `.ed-corner-br`: the numbers are read out of+// slides' stylesheet and the browser half holds the computed pill to them.+const pillB = block('.ed-present-pill'), pillMain = /\n\.ed-present-pill \.ed-pill-main \{([\s\S]*?)\n\}/.exec(slidesCss)?.[1] ?? ''+const cornerB = block('.ed-corner-br')+const SLIDES_PILL = {+ radius: decl(pillB, 'border-radius'),+ border: decl(pillB, 'border'),+ shadow: decl(pillB, 'box-shadow'),+ weight: decl(pillMain, 'font-weight'),+ padY: decl(pillMain, 'padding-block'),+ // inset-inline-end: max(14px, …) / bottom: max(14px, …)+ end: /max\((\d+px)/.exec(decl(cornerB, 'inset-inline-end') ?? '')?.[1],+ bottom: /max\((\d+px)/.exec(decl(cornerB, 'bottom') ?? '')?.[1],+ hover: /var\((--[a-z0-9-]+)\)/.exec(/\n\.ed-present-pill \.ed-btn:hover \{ background:\s*([^;]+);/.exec(slidesCss)?.[1] ?? '')?.[1],+}+ok(Object.values(SLIDES_PILL).every(Boolean), `slides' Slideshow pill values can be read from its stylesheet (${JSON.stringify(SLIDES_PILL)})`)+const readFab = /\.sp-corner > \.sp-readfab \{([\s\S]*?)\n\}/.exec(css)?.[1] ?? ''+ok(/inset-inline-end:/.test(readFab) && !/\b(left|right):/.test(readFab),+ 'the Reading view pill sits at the bottom-END corner by a logical inset, so RTL mirrors it as slides\' does')+ok(new RegExp(`\\.sp-corner > \\.sp-readfab:hover \\{ background: var\\(${SLIDES_PILL.hover}\\)`).test(css),+ `its hover is slides' pill hover, var(${SLIDES_PILL.hover})`)+ok(/\.sp-app\.sp-sealed \.sp-readtoggle,/.test(css) && /classList\.add\('sp-readfab', 'sp-readtoggle'\)/.test(editor),+ 'a SEALED reading copy hides the pill: it carries .sp-readtoggle, which the sealed rule removes')+ok(!/icon: 'eye'|icon: 'graph'|sp-insp-toggle/.test(editor) && !/sp-insp-toggle/.test(css),+ 'the bar builds no Reading view, Graph or Properties button any more, and no rule styles one')+// ————— browser half ————————————————————————————————————————————————————————console.log('\nthe built shell, driven with trusted input\n')const CHROME = [process.env.BENTO_CHROME, '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',@@ -899,6 +927,10 @@ async function browser(chrome: string, html: string): Promise<void> {const out = {}const add = (where, label) => { label = name(label); if (label && !out[label]) out[label] = where }const bar = document.querySelector('.sp-bar')+ // the floating Reading view pill, and the panels' own chevrons+ const fab = document.querySelector('.sp-readfab')+ if (fab && vis(fab)) add('fab', fab.getAttribute('aria-label'))+ for (const c of document.querySelectorAll('.bkp-toggle')) if (vis(c)) add('panel', c.getAttribute('aria-label'))for (const b of bar.querySelectorAll('button')) if (vis(b) && !b.closest('.bkm-menu')) {add('bar', b.getAttribute('aria-label') || b.title || b.textContent)// an insert button is also known by its word ("Table" beside "Add a table — …")@@ -920,6 +952,7 @@ async function browser(chrome: string, html: string): Promise<void> {if (!vis(document.querySelector('.sp-side .sp-newmenu > .bkm-trigger') || document.body)) [...bar.querySelectorAll('button')].find(b => (b.getAttribute('aria-label') || '').startsWith('Pages'))?.click()await sleep(250)const nt = document.querySelector('.sp-side .sp-newmenu > .bkm-trigger')+ for (const b of document.querySelectorAll('.sp-side-head button')) if (vis(b) && !b.closest('.bkm-menu')) add('page list', b.getAttribute('aria-label'))if (nt && vis(nt)) { add('page list', nt.getAttribute('aria-label')); nt.click(); await sleep(80); for (const r of nt.parentElement.querySelectorAll(':scope > .bkm-menu .bkm-item')) add('page list menu', r.querySelector('.bkm-text')?.textContent || ''); esc(); await sleep(60) }document.querySelector('.sp-mark').click(); await sleep(250)const d = [...document.querySelectorAll('[aria-modal="true"]')].pop()@@ -930,7 +963,15 @@ async function browser(chrome: string, html: string): Promise<void> {for (const w of [1440, 390]) {await open(w < 700)const now = await js<Record<string, string>>(WALK)- const lost = BEFORE[w].filter((c) => !((ALIAS[c] ?? c) in now))+ // Properties left the bar (2026-10-20): where the panel is a column its+ // own chevron is the control, as in slides; folded, ⋯ keeps the row+ const aliasAt = (c: string) => (w >= 700 && c === 'Properties') ? 'Show properties' : (ALIAS[c] ?? c)+ const lost = BEFORE[w].filter((c) => !(aliasAt(c) in now))+ // …and the new homes are what reach them (maintainer, 2026-10-20)+ if (now['Reading view'] !== 'fab') lost.push(`Reading view (not the floating pill: ${now['Reading view']})`)+ if (now['Graph'] !== 'page list') lost.push(`Graph (not on the page list's header: ${now['Graph']})`)+ if (w < 700 && now['Properties'] !== 'menu') lost.push(`Properties (not in ⋯: ${now['Properties']})`)+ if (w >= 700 && now['Show properties'] !== 'panel') lost.push(`Properties (not the panel chevron: ${now['Show properties']})`)// …and the new homes are what reach them: the pages from the page listfor (const c of ['New page', "Today's journal", 'New issue']) if (!/^page list/.test(now[c] ?? '')) lost.push(`${c} (not on the page list's + ▾: ${now[c]})`)for (const c of ['Audio', 'Gallery', 'List', 'Table view', 'Comment']) if (!(c in now)) lost.push(`${c} (new member unreachable)`)@@ -942,6 +983,104 @@ async function browser(chrome: string, html: string): Promise<void> {ok(lost.length === 0, `at ${w}px every command reachable before is reachable now (${BEFORE[w].length} checked${lost.length ? '; LOST: ' + lost.join(', ') : ''})`)}+ // ——— THE BAR CARRIES LESS (maintainer, 2026-10-20) ———+ // Reading view is a floating pill in slides' Slideshow corner, Properties+ // is the panel's chevron, `]` and (folded) ⋯, Graph is on the page list's+ // header, Search stays. Each home is pressed with trusted input.+ const FAB = `document.querySelector('.sp-readfab')`+ const BAR_HAS = `(() => { const names = [...document.querySelectorAll('.sp-bar button')].filter(b => !b.closest('.bkm-menu')).map(b => (b.getAttribute('aria-label') || '').split(' (')[0].split(' — ')[0]); return { reading: names.includes('Reading view'), graph: names.includes('Graph'), props: names.includes('Properties'), search: names.includes('Search all pages') } })()`+ const MORE_ROWS = `(() => { const m = ${OPEN}; return m ? [...m.querySelectorAll('.bkm-item .bkm-text')].map(x => x.textContent.trim()) : null })()`+ // where the pill sits, how it is drawn, and whether a press lands on it+ const FABAT = `(() => { const b = ${FAB}; if (!b) return null; const r = b.getBoundingClientRect(); const main = document.querySelector('.sp-main').getBoundingClientRect(); const top = document.elementsFromPoint(r.x + r.width / 2, r.y + r.height / 2)[0]; const c = getComputedStyle(b);+ return { w: Math.round(r.width), h: Math.round(r.height), end: Math.round(main.right - r.right), bottom: Math.round(innerHeight - r.bottom), onScreen: r.left >= 0 && r.right <= innerWidth && r.bottom <= innerHeight, topmost: !!top && (top === b || b.contains(top)),+ radius: c.borderTopLeftRadius, border: c.borderTopWidth + ' ' + c.borderTopStyle, shadow: c.boxShadow, weight: c.fontWeight, padY: c.paddingTop, label: b.getAttribute('aria-label'), tip: b.title, pressed: b.getAttribute('aria-pressed'), icon: !!b.querySelector('svg') } })()`+ for (const w of [1440, 390]) {+ await open(w < 700)+ const has = await js<any>(BAR_HAS)+ ok(!has.reading && !has.graph && !has.props && has.search,+ `at ${w}px the bar no longer carries Reading view, Graph or Properties — and Search stays (${JSON.stringify(has)})`)++ // Reading view: the pill, in and back out+ const f0 = await js<any>(FABAT)+ const pillOff: string[] = []+ if (!f0) pillOff.push('no pill')+ else {+ if (f0.radius !== '999px' || !/999px/.test(SLIDES_PILL.radius ?? '')) pillOff.push(`radius ${f0.radius} ≠ ${SLIDES_PILL.radius}`)+ if (f0.border !== `${/(\d+px)/.exec(SLIDES_PILL.border ?? '')?.[1]} solid`) pillOff.push(`border ${f0.border} ≠ ${SLIDES_PILL.border}`)+ const cs = nums(f0.shadow).split(','), ss = nums(SLIDES_PILL.shadow).split(',')+ if (cs.slice(0, 4).join() !== ss.slice(3, 7).join() || cs.slice(4, 7).join() !== ss.slice(0, 3).join()) pillOff.push(`shadow ${f0.shadow} ≠ ${SLIDES_PILL.shadow}`)+ if (f0.weight !== SLIDES_PILL.weight) pillOff.push(`weight ${f0.weight} ≠ ${SLIDES_PILL.weight}`)+ if (f0.end !== parseInt(SLIDES_PILL.end ?? '') || f0.bottom !== parseInt(SLIDES_PILL.bottom ?? '')) pillOff.push(`corner ${f0.end}/${f0.bottom} ≠ ${SLIDES_PILL.end}/${SLIDES_PILL.bottom}`)+ if (w >= 700 && f0.padY !== SLIDES_PILL.padY) pillOff.push(`padding ${f0.padY} ≠ ${SLIDES_PILL.padY}`)+ if (w < 700 && f0.h < 44) pillOff.push(`a ${f0.h}px target on a phone`)+ if (!f0.icon || f0.label !== 'Reading view' || f0.tip !== 'Reading view') pillOff.push(`eye/label/tooltip ${f0.icon}/${f0.label}/${f0.tip}`)+ }+ ok(pillOff.length === 0, `at ${w}px Reading view is slides' Slideshow pill, in its bottom-end corner (${pillOff.join('; ') || `${f0.w}×${f0.h}, ${f0.end}px from the page's end, ${f0.bottom}px up`})`)+ ok(!!f0 && f0.onScreen && f0.topmost && f0.pressed === 'false', `at ${w}px the pill is on screen and topmost at its centre (${JSON.stringify({ on: f0?.onScreen, top: f0?.topmost, pressed: f0?.pressed })})`)+ await tap(FAB)+ await sleep(300)+ const f1 = await js<any>(FABAT)+ const inRead = await js<boolean>(`!!document.querySelector('.sp-app.sp-reading')`)+ ok(inRead && !!f1 && f1.onScreen && f1.topmost && f1.pressed === 'true',+ `at ${w}px pressing the pill opens reading view, and the pill stays on screen, pressable and pressed — the way back out (${JSON.stringify({ inRead, on: f1?.onScreen, top: f1?.topmost, pressed: f1?.pressed })})`)+ await tap(FAB)+ await sleep(300)+ ok(!(await js<boolean>(`!!document.querySelector('.sp-app.sp-reading')`)) && (await js<string>(`(${FAB}).getAttribute('aria-pressed')`)) === 'false',+ `at ${w}px pressing it again leaves reading view`)+ // …Esc leaves it too, as before+ await tap(FAB); await sleep(200)+ await js(`document.activeElement?.blur?.(); 1`)+ await key('Escape', 0, 'Escape'); await sleep(200)+ ok(!(await js<boolean>(`!!document.querySelector('.sp-app.sp-reading')`)), `at ${w}px Esc still leaves reading view`)+ // …and a sealed copy has no pill (the class the sealed boot sets)+ const sealedPill = await js<string>(`(() => { const a = document.querySelector('.sp-app'); a.classList.add('sp-sealed'); const d = getComputedStyle(${FAB}).display; a.classList.remove('sp-sealed'); return d })()`)+ ok(sealedPill === 'none', `at ${w}px a sealed reading copy shows no pill (display ${sealedPill})`)++ // Graph: on the page list's header, and it opens the graph+ if (w < 700) await tap(`[...document.querySelectorAll('.sp-bar button')].find(b => (b.getAttribute('aria-label') || '').startsWith('Pages'))`)+ await sleep(250)+ const GB = `[...document.querySelectorAll('.sp-side-head button')].find(b => b.getAttribute('aria-label') === 'Graph')`+ const gb = await js<any>(`(() => { const b = ${GB}; if (!b) return null; const r = b.getBoundingClientRect(); const top = document.elementsFromPoint(r.x + r.width / 2, r.y + r.height / 2)[0]; return { tip: b.title, w: Math.round(r.width), h: Math.round(r.height), topmost: !!top && (top === b || b.contains(top)), beside: !!b.closest('.sp-side-acts')?.querySelector('.sp-newsplit') } })()`)+ ok(!!gb && gb.tip === 'Graph' && gb.topmost && gb.beside && (w >= 700 || gb.h >= 44),+ `at ${w}px Graph is an icon button on the page list's header, beside + ▾, with its tooltip${w < 700 ? ', a 44px target in the drawer' : ''} (${JSON.stringify(gb)})`)+ await tap(GB)+ await sleep(400)+ const graph = await js<any>(`(() => { const d = [...document.querySelectorAll('.sp-dlg-graph')].find(d => d.getBoundingClientRect().height > 0); return { title: d?.querySelector('.sp-card-h')?.textContent ?? null, canvas: !!d?.querySelector('canvas'), drawer: document.querySelector('.sp-side').closest('.bkp').getBoundingClientRect().width } })()`)+ ok(graph.title === 'Graph' && graph.canvas && (w >= 700 || graph.drawer === 0),+ `at ${w}px pressing it opens the graph view${w < 700 ? ', the drawer shut behind it' : ''} (${JSON.stringify(graph)})`)+ await key('Escape', 0, 'Escape'); await sleep(250)+ await js(`window.bento.graph(); 1`); await sleep(300)+ const api = await js<string | null>(`(() => { const d = [...document.querySelectorAll('.sp-dlg-graph')].find(d => d.getBoundingClientRect().height > 0); return d?.querySelector('.sp-card-h')?.textContent ?? null })()`)+ ok(api === 'Graph', `at ${w}px bento.graph() still opens it (${api})`)+ await key('Escape', 0, 'Escape'); await sleep(250)++ // Properties: ⋯ on a phone; `]` and the chevron where the panel is a column+ const INSP = `document.querySelector('.sp-insp').closest('.bkp')`+ if (w < 700) {+ await tap(TRIG('More actions'))+ const rows = await js<string[] | null>(MORE_ROWS)+ ok(!!rows && rows.includes('Properties') && !rows.includes('Reading view') && !rows.includes('Graph'),+ `at ${w}px ⋯ keeps Properties and lists neither Reading view (the pill) nor Graph (the page list) (${rows?.filter((r) => /Properties|Reading|Graph|PDF/.test(r)).join(', ')})`)+ await tap(`[...(${OPEN}).querySelectorAll('.bkm-item')].find(b => b.querySelector('.bkm-text')?.textContent.trim() === 'Properties')`)+ await sleep(400)+ const pw = await js<number>(`(${INSP}).getBoundingClientRect().width`)+ ok(pw > 200, `at ${w}px ⋯ → Properties opens the properties drawer (${pw}px)`)+ } else {+ await js(`document.activeElement?.blur?.(); 1`)+ const p0 = await js<number>(`(${INSP}).getBoundingClientRect().width`)+ await key(']', 0, 'BracketRight', 221); await sleep(350)+ const p1 = await js<number>(`(${INSP}).getBoundingClientRect().width`)+ await key(']', 0, 'BracketRight', 221); await sleep(350)+ const p2 = await js<number>(`(${INSP}).getBoundingClientRect().width`)+ ok(p0 === 0 && p1 > 200 && p2 === 0, `at ${w}px \`]\` opens and shuts the properties panel (${p0} → ${p1} → ${p2}px)`)+ const chev = await js<any>(`(() => { const c = (${INSP}).querySelector('.bkp-toggle'); const r = c.getBoundingClientRect(); const top = document.elementsFromPoint(r.x + r.width / 2, r.y + r.height / 2)[0]; return { label: c.getAttribute('aria-label'), right: Math.round(innerWidth - r.right), topmost: !!top && (top === c || c.contains(top)) } })()`)+ ok(chev.label === 'Show properties (])' && Math.abs(chev.right) <= 6 && chev.topmost, `at ${w}px the shut panel's chevron is docked at the edge and pressable (${JSON.stringify(chev)})`)+ await tap(`(${INSP}).querySelector('.bkp-toggle')`); await sleep(350)+ const p3 = await js<number>(`(${INSP}).getBoundingClientRect().width`)+ ok(p3 > 200, `at ${w}px pressing that chevron opens the properties panel (${p3}px)`)+ }+ }+// ——— TAG CHIPS × FOOTNOTE MARKERS: the ORDER in render.ts ———// inlineHost and table cells set their content with the footnote// either/or (raw html while editable, `markRefs` <sup><a> markers@@ -976,9 +1115,9 @@ async function browser(chrome: string, html: string): Promise<void> {raw: h.textContent.includes('[^1]'), editable: h.isContentEditable } })()`)// 1 — reading view (editable: false): a chip AND a marker, in both hosts- await tap(TRIG('Reading view'))+ await tap(`document.querySelector('.sp-readfab')`)await sleep(300)- ok(await js<boolean>(`!!document.querySelector('.sp-reading')`), 'the reading view is on (the eye on the bar)')+ ok(await js<boolean>(`!!document.querySelector('.sp-reading')`), 'the reading view is on (the floating eye)')for (const [what, host] of [['paragraph', PHOST], ['table cell', CHOST]] as const) {const s = await shape(host)ok(!!s && !s.editable && s.chips.includes('launch=#launch'),@@ -986,7 +1125,7 @@ async function browser(chrome: string, html: string): Promise<void> {ok(!!s && s.markers.length === 1 && s.markers[0].n === '1' && !s.markers[0].chip && !s.raw,`reading view, ${what}: the footnote is a sup > a marker "1", not a chip, and no raw [^1] is left (${JSON.stringify(s?.markers)})`)}- await tap(TRIG('Reading view'))+ await tap(`document.querySelector('.sp-readfab')`)await sleep(300)ok(await js<boolean>(`!document.querySelector('.sp-reading')`), 'the reading view is off again')diff --git a/spaces/CHANGELOG.md b/spaces/CHANGELOG.mdindex faa547e4..d420e319 100644--- a/spaces/CHANGELOG.md+++ b/spaces/CHANGELOG.md@@ -1375,6 +1375,13 @@ Versions follow `0.MINOR.PATCH` while pre-1.0.recovery is off for this space — it’s too large to keep a backup copy. Saveoften." It says so once per space, and never for an encrypted space, whichnever keeps a recovery copy.+- **A slimmer top bar, closer to bento/slides'.** Reading view is now a+ floating button at the page's bottom-right corner (bottom-left in+ right-to-left languages), where slides keeps its Slideshow button. It stays+ there in reading view, so it is also the way back; Esc still works. Graph+ moved to the page list's header, beside +. Properties left the bar: open it+ with `]`, with the panel's own arrow at the window's edge, or, on a phone,+ from ⋯. Search stays in the bar.- **A sealed space keeps no readable copy in this browser.** A space sealedby a password or by the identity seal writes no crash-recovery copy and noversion, and shows no recovery-off notice. Opening a sealed space neverdiff --git a/spaces/src/editor.ts b/spaces/src/editor.tsindex 4a294674..cb85b485 100644--- a/spaces/src/editor.ts+++ b/spaces/src/editor.ts@@ -427,10 +427,15 @@ export class Editor {// · About is reached from the wordmark, as in slides.//// A command slides has no equivalent for goes where slides would put one- // of its kind (DECISIONS 2026-09-26): Graph is a view, so it is a bar- // button beside Reading view; "Make this page an issue" acts on one page,- // so it is in the page's own menu; Import Markdown… is the document- // arriving as data, so it sits under Save beside Replace from JSON.+ // of its kind (DECISIONS 2026-09-26): "Make this page an issue" acts on+ // one page, so it is in the page's own menu; Import Markdown… is the+ // document arriving as data, so it sits under Save beside Replace from JSON.+ //+ // THE BAR CARRIES LESS THAN IT DID (maintainer, 2026-10-20): Reading view+ // is a floating button at the page's bottom-end corner, where slides keeps+ // its Slideshow pill; Properties is the inspector's own chevron, `]` and,+ // folded, a row in ⋯; Graph is a view of the TREE, so it sits in the page+ // list's header. Search stays.type BarAction = {icon: IconNamelabel: string@@ -439,12 +444,6 @@ export class Editor {keep?: (b: HTMLButtonElement) => void}const barActions: BarAction[] = [- { icon: 'eye', label: t('Reading view'),- run: () => this.toggleReading(),- // named so a sealed copy can take it away: there is no editing to go- // back to, so the eye is absent rather than inert (styles.css)- keep: (b) => { this.readB = b; b.classList.add('sp-readtoggle') } },- { icon: 'graph', label: t('Graph'), run: () => this.openGraph() },{ icon: 'print', label: t('Export PDF (print)'), kbd: keys('mod', 'P'), run: () => this.openPrint() },]@@ -498,10 +497,7 @@ export class Editor {m.separator()}if (!this.sealed) row(m, { icon: ICONS.panelRight, label: t('Properties'), kbd: ']', run: () => this.toggleInsp() })- for (const a of barActions) {- if (this.sealed && a.icon === 'eye') continue- row(m, { icon: ICONS[a.icon], label: a.label, kbd: a.kbd, run: a.run })- }+ for (const a of barActions) row(m, { icon: ICONS[a.icon], label: a.label, kbd: a.kbd, run: a.run })// The globe's list, one tap further: a menu cannot hold a menu, so// the row opens the same list as its own popup (a sheet on a phone).const moreB = m.trigger@@ -551,9 +547,6 @@ export class Editor {history.append(this.undoB, this.redoB)const saveGroup = el('div', 'sp-split')saveGroup.append(saveB, saveMore)- const inspB = iconBtn('panelRight', t('Properties — show or hide this block’s settings'),- () => this.toggleInsp())- inspB.classList.add('sp-insp-toggle')// Slides' layout, group for group (chrome-unification §2.1): LEFT is the// document (mark · title · history), then the insert tools — here the one@@ -562,7 +555,7 @@ export class Editor {// ⋯ closes the row once the bar has folded — only then, as in slides — and// last is where slides' folded bar puts it.const right = el('div', 'sp-group sp-group-right')- right.append(search, ...inlineSecondary, inspB, this.liveSlot, saveGroup, lang, helpB, more)+ right.append(search, ...inlineSecondary, this.liveSlot, saveGroup, lang, helpB, more)// The status goes AFTER the history and the insert tools, never before.// It is transient text that grows from nothing to a whole sentence, and@@ -616,7 +609,20 @@ export class Editor {widthKey: 'bento-sp-insp', closedKey: 'bento-sp-insp-closed',show: t('Show properties (])'), hide: t('Hide properties (])'),})- body.append(this.pagesPanel.root, this.main, this.inspPanel.root)+ // READING VIEW FLOATS, as slides' Slideshow pill does: the same pill, in+ // the same corner — bottom-END of the page (slides' bottom-right; spaces+ // has no zoombar to share it with). The corner is a zero-width box after+ // the page, so the pill hangs off the page's own edge and moves with the+ // properties panel instead of covering it. It is the way back out of+ // reading view as well as in, so it stays there; a SEALED copy has no+ // editing to go back to, so there it is absent (styles.css).+ const corner = el('div', 'sp-corner')+ this.readB = labelBtn(ICONS.eye, t('Reading view'), t('Reading view'), () => this.toggleReading())+ this.readB.classList.add('sp-readfab', 'sp-readtoggle')+ this.readB.setAttribute('aria-pressed', String(this.reading))+ if (this.reading) this.readB.classList.add('sp-on')+ corner.append(this.readB)+ body.append(this.pagesPanel.root, this.main, corner, this.inspPanel.root)this.root.append(bar, body)// WHICH BLOCK THE PANEL MEANS. Capture-phase on the page, because the@@ -967,7 +973,14 @@ export class Editor {fill: (m) => this.pageRows(m),})split.append(plus, this.newPageMenu.root)- head.append(split)+ // GRAPH IS A VIEW OF THE TREE, so it sits on the tree's header (maintainer,+ // 2026-10-20) — beside + ▾, and still there in reading view, where + ▾+ // is not: a reader uses the graph to find their way.+ const graphB = iconBtn('graph', t('Graph'), () => { this.closeDrawer(); this.openGraph() })+ graphB.classList.add('sp-graphbtn')+ const acts = el('div', 'sp-side-acts')+ acts.append(graphB, split)+ head.append(acts)this.sidebar.append(head)const list = el('ul', 'sp-tree')diff --git a/spaces/src/i18n/de.ts b/spaces/src/i18n/de.tsindex c1016c54..b5639db4 100644--- a/spaces/src/i18n/de.ts+++ b/spaces/src/i18n/de.ts@@ -391,7 +391,6 @@ export const de: Catalog = {"Print or save as PDF (⌘P)": "Drucken oder als PDF speichern (⌘P)","Print…": "Drucken…","Properties": "Eigenschaften",- "Properties — show or hide this block’s settings": "Eigenschaften — Einstellungen dieses Blocks ein- oder ausblenden","Purple": "Lila","Put the caret in a block to see what it can be.": "Setz den Cursor in einen Block, um zu sehen, was sich daran ändern lässt.","Quote": "Zitat",diff --git a/spaces/src/i18n/es.ts b/spaces/src/i18n/es.tsindex 22353e14..278e41db 100644--- a/spaces/src/i18n/es.ts+++ b/spaces/src/i18n/es.ts@@ -391,7 +391,6 @@ export const es: Catalog = {"Print or save as PDF (⌘P)": "Imprimir o guardar como PDF (⌘P)","Print…": "Imprimir…","Properties": "Propiedades",- "Properties — show or hide this block’s settings": "Propiedades — mostrar u ocultar los ajustes de este bloque","Purple": "Morado","Put the caret in a block to see what it can be.": "Coloca el cursor en un bloque para ver qué puede cambiarse.","Quote": "Cita",diff --git a/spaces/src/i18n/fr.ts b/spaces/src/i18n/fr.tsindex b3149e4e..75c35c81 100644--- a/spaces/src/i18n/fr.ts+++ b/spaces/src/i18n/fr.ts@@ -391,7 +391,6 @@ export const fr: Catalog = {"Print or save as PDF (⌘P)": "Imprimer ou enregistrer en PDF (⌘P)","Print…": "Imprimer…","Properties": "Propriétés",- "Properties — show or hide this block’s settings": "Propriétés — afficher ou masquer les réglages de ce bloc","Purple": "Violet","Put the caret in a block to see what it can be.": "Placez le curseur dans un bloc pour voir ce qui s’y règle.","Quote": "Citation",diff --git a/spaces/src/i18n/it.ts b/spaces/src/i18n/it.tsindex 1541e39c..da6011e7 100644--- a/spaces/src/i18n/it.ts+++ b/spaces/src/i18n/it.ts@@ -391,7 +391,6 @@ export const it: Catalog = {"Print or save as PDF (⌘P)": "Stampa o salva come PDF (⌘P)","Print…": "Stampa…","Properties": "Proprietà",- "Properties — show or hide this block’s settings": "Proprietà — mostra o nascondi le impostazioni di questo blocco","Purple": "Viola","Put the caret in a block to see what it can be.": "Metti il cursore in un blocco per vedere che cosa si può cambiare.","Quote": "Citazione",diff --git a/spaces/src/i18n/ja.ts b/spaces/src/i18n/ja.tsindex b2e7d37f..bcf719bc 100644--- a/spaces/src/i18n/ja.ts+++ b/spaces/src/i18n/ja.ts@@ -391,7 +391,6 @@ export const ja: Catalog = {"Print or save as PDF (⌘P)": "印刷または PDF として保存 (⌘P)","Print…": "印刷…","Properties": "プロパティ",- "Properties — show or hide this block’s settings": "プロパティ — このブロックの設定を表示または非表示にする","Purple": "紫","Put the caret in a block to see what it can be.": "ブロックにカーソルを置くと、そのブロックで変えられるものが出ます。","Quote": "引用",diff --git a/spaces/src/i18n/packed.ts b/spaces/src/i18n/packed.tsindex 896ae172..41456841 100644--- a/spaces/src/i18n/packed.ts+++ b/spaces/src/i18n/packed.ts@@ -535,7 +535,6 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"Print or save as PDF": ["印刷または PDF として保存","打印或存为 PDF","列印或另存為 PDF","Imprimir o guardar como PDF","Imprimer ou enregistrer en PDF","Drucken oder als PDF speichern","Stampa o salva come PDF","Imprimir ou salvar como PDF"],"Print…": ["印刷…","打印…","列印…","Imprimir…","Imprimer…","Drucken…","Stampa…","Imprimir…"],"Properties": ["プロパティ","属性","屬性","Propiedades","Propriétés","Eigenschaften","Proprietà","Propriedades"],- "Properties — show or hide this block’s settings": ["プロパティ — このブロックの設定を表示または非表示にする","属性 — 显示或隐藏这个块的设置","屬性 — 顯示或隱藏這個區塊的設定","Propiedades — mostrar u ocultar los ajustes de este bloque","Propriétés — afficher ou masquer les réglages de ce bloc","Eigenschaften — Einstellungen dieses Blocks ein- oder ausblenden","Proprietà — mostra o nascondi le impostazioni di questo blocco","Propriedades — mostrar ou ocultar as configurações deste bloco"],"Pull quote": ["プルクオート","引文摘录","引文摘錄","Cita destacada","Exergue","Herausgestelltes Zitat","Citazione in evidenza","Citação em destaque"],"Purple": ["紫","紫色","紫色","Morado","Violet","Lila","Viola","Roxo"],"Put the caret in a block to see what it can be.": ["ブロックにカーソルを置くと、そのブロックで変えられるものが出ます。","把光标放进一个块,就能看到它能改什么。","把游標放進一個區塊,就能看到它能改什麼。","Coloca el cursor en un bloque para ver qué puede cambiarse.","Placez le curseur dans un bloc pour voir ce qui s’y règle.","Setz den Cursor in einen Block, um zu sehen, was sich daran ändern lässt.","Metti il cursore in un blocco per vedere che cosa si può cambiare.","Coloque o cursor em um bloco para ver no que ele pode se transformar."],diff --git a/spaces/src/i18n/pt.ts b/spaces/src/i18n/pt.tsindex af2fc517..daa15320 100644--- a/spaces/src/i18n/pt.ts+++ b/spaces/src/i18n/pt.ts@@ -398,7 +398,6 @@ export const pt: Catalog = {"Print or save as PDF (⌘P)": "Imprimir ou salvar como PDF (⌘P)","Print…": "Imprimir…","Properties": "Propriedades",- "Properties — show or hide this block’s settings": "Propriedades — mostrar ou ocultar as configurações deste bloco","Purple": "Roxo","Put the caret in a block to see what it can be.": "Coloque o cursor em um bloco para ver no que ele pode se transformar.","Quote": "Citação",diff --git a/spaces/src/i18n/zh-Hans.ts b/spaces/src/i18n/zh-Hans.tsindex e2a3bd4b..e97e069d 100644--- a/spaces/src/i18n/zh-Hans.ts+++ b/spaces/src/i18n/zh-Hans.ts@@ -391,7 +391,6 @@ export const zh_Hans: Catalog = {"Print or save as PDF (⌘P)": "打印或存为 PDF (⌘P)","Print…": "打印…","Properties": "属性",- "Properties — show or hide this block’s settings": "属性 — 显示或隐藏这个块的设置","Purple": "紫色","Put the caret in a block to see what it can be.": "把光标放进一个块,就能看到它能改什么。","Quote": "引用",diff --git a/spaces/src/i18n/zh-Hant.ts b/spaces/src/i18n/zh-Hant.tsindex 734801bd..bdfa1e07 100644--- a/spaces/src/i18n/zh-Hant.ts+++ b/spaces/src/i18n/zh-Hant.ts@@ -391,7 +391,6 @@ export const zh_Hant: Catalog = {"Print or save as PDF (⌘P)": "列印或另存為 PDF (⌘P)","Print…": "列印…","Properties": "屬性",- "Properties — show or hide this block’s settings": "屬性 — 顯示或隱藏這個區塊的設定","Purple": "紫色","Put the caret in a block to see what it can be.": "把游標放進一個區塊,就能看到它能改什麼。","Quote": "引言",diff --git a/spaces/src/styles.css b/spaces/src/styles.cssindex 50b2beac..23d42a7f 100644--- a/spaces/src/styles.css+++ b/spaces/src/styles.css@@ -1624,12 +1624,12 @@ a.sp-embed-src:hover { color: var(--ink); text-decoration: underline; }padding: every editing control was still on screen, merely inert, whichreads as a broken editor rather than as a document. What leaves is anythingwhose only purpose is CHANGING the space; what stays is everything a reader- uses — the page tree, ⌘K search, Graph, print, and the eye to come back.+ uses — the page tree, ⌘K search, Graph, print, and the eye to come back+ (the floating Reading view button, which is how a reader leaves).`!important` throughout because these are one-line overrides of the layoutrules that build each control, not a competition of specificity. (The insertgroup already leaves, with the insert group's own rules below.) */.sp-app.sp-reading .sp-group-history,-.sp-app.sp-reading .sp-insp-toggle,.sp-app.sp-reading .bkp-end,.sp-app.sp-reading .sp-fmt,.sp-app.sp-reading .sp-newsplit,@@ -2129,23 +2129,12 @@ body.sp-col-resizing { cursor: col-resize; user-select: none; }does not hold two panels and a page. The kernel panel does that itself(`drawerBelow`, editor.ts DRAWER_BELOW). */-/* THE BUTTON IS SHOWN AT EVERY WIDTH, and this is a correction.- It was hidden above the breakpoint on the reasoning that the chevron on the- resizer strip is already the control, and that a second one would be the- duplication `.sp-panel-toggle` avoids. That argument holds for the PAGE LIST,- which is open by default: its chevron sits on the visible edge of a visible- panel. This panel is closed by default — deliberately, so it costs the- reading column nothing — which leaves a 5px strip as the only affordance.- Measured at 2560px: a 5×1353 target at x=2555, hard against the screen edge,- for a panel that is 0px wide. Reported as "how can I show the right panel?",- which is the question a control nobody can find produces. */-.sp-insp-toggle { display: inline-flex; }-/* …AND NOT EVEN THERE ONCE THE BAR HAS FOLDED. Measured at 375px: the 40px- button took the document title from 70px to 26px. fitTopbar hands out the- tier as a class precisely so a control can ask "is there room for me" rather- than re-derive a breakpoint; below the fold this one lives in the ⋯ menu, the- same place undo/redo and the other ways to save go. */-.sp-bar-fold .sp-insp-toggle { display: none; }+/* THE BAR HAS NO PROPERTIES BUTTON (maintainer, 2026-10-20). It had one at+ every width because a closed panel's only affordance was once a 5px strip+ against the screen edge. The kernel panel's chevron now docks flush to that+ edge when the panel is shut (`.bkp-end.bkp-collapsed .bkp-toggle` above), so+ the panel is reached as slides' is — its chevron, `]` — and, once the bar has+ folded, from the Properties row in ⋯. test-spaces-chrome measures all three. *//* A disabled action is shown, not hidden: "move up" missing from the top blockis a menu that changes shape, and a menu that changes shape is one you have@@ -3124,6 +3113,38 @@ body.sp-canvas-dragging { user-select: none; cursor: grabbing; }}}+/* ————— the Reading view pill —————+ Slides' Slideshow pill (.ed-present-pill, .ed-pill-main): a surface pill on+ a hairline, its soft shadow, 600 weight, the chrome tint on hover — in the+ corner slides gives it, bottom-END (inset-inline-end, so RTL mirrors it),+ 14px in from the page's edge and above the safe area. `.sp-corner` is a+ zero-width box after the page, so `inset-inline-end` measures from the+ page's own edge, never from under the properties panel. The page's 40vh+ bottom padding is what lets the last line scroll clear of it. */+.sp-corner { position: relative; flex: 0 0 0; width: 0; min-width: 0; }+.sp-corner > .sp-readfab {+ position: absolute; z-index: 11;+ inset-inline-end: max(14px, env(safe-area-inset-right));+ bottom: max(14px, env(safe-area-inset-bottom));+ background: var(--surface); border: 1px solid var(--line); border-radius: 999px;+ box-shadow: 0 4px 14px rgb(20 30 45 / 0.10);+ padding-block: 6px; padding-inline: 14px; font-weight: 600; color: var(--ink-2);+}+.sp-corner > .sp-readfab:hover { background: var(--chrome); }+.sp-corner > .sp-readfab.sp-on { background: var(--chrome-2); color: var(--ink); box-shadow: 0 4px 14px rgb(20 30 45 / 0.10), inset 0 0 0 1px var(--line); }+@media (pointer: coarse), (max-width: 700px) {+ .sp-corner > .sp-readfab { min-height: var(--tap); }+}+@media print { .sp-corner { display: none !important; } }++/* the page list's header: Graph beside + ▾ */+.sp-side-acts { display: inline-flex; align-items: center; gap: 2px; }+.sp-graphbtn { padding-inline: 6px; color: var(--muted); }+.sp-graphbtn:hover { color: var(--ink); }+@media (pointer: coarse), (max-width: 700px) {+ .sp-graphbtn { min-width: var(--tap); min-height: var(--tap); justify-content: center; }+}+/* ————— page templates —————One row in the Templates dialog: the icon beside the name rather than aboveit. `.sp-result-ico` and `.sp-tree-ico` are both `display: flex` and expect a