Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
v0.8.8: 16:9 preset matches default, fullscreen chart tooltips, sidebar overflow
nyblnetc97e6fb11229
diff --git a/CLAUDE.md b/CLAUDE.mdindex 794eb988..7ef9f8ba 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -201,9 +201,13 @@ One HTML file = the document + viewer + editor. See `README.md` for the vision.FAB). Touch: our own swipe nav (Reveal touch OFF — it would walkinto hidden states); swiping past either end exits to the editor.Deck PAGE SIZE: presets + custom in the slide panel (doc.size —- already per-doc in the format); print @page is generated per-deck- (width normalised to 1600, height follows aspect). Size changes- reframe the canvas, never rescale elements. Save is a dropdown: copy (identity-keeping invite) / new+ already per-doc in the format); canonical 16:9 = 1280×720 (matches+ the model default; presets use exact-px matching); print @page is+ generated per-deck (width normalised to 1600, height follows+ aspect). Size changes reframe the canvas, never rescale elements.+ FULLSCREEN paints only the fullscreened element's subtree — anything+ body-mounted (chart tooltips!) must reparent into+ document.fullscreenElement while it's active. Save is a dropdown: copy (identity-keeping invite) / newdeck (fresh identity) / template. "Live" button popover: name field,collaborator list (click follows), join/leave toasts. Deck buttons useONE invisible hit-rect above button+label (hard-won #7) — never putdiff --git a/slides/package.json b/slides/package.jsonindex 6db0fa44..ff36ff97 100644--- a/slides/package.json+++ b/slides/package.json@@ -1,7 +1,7 @@{"name": "bento-slides","private": true,- "version": "0.8.7",+ "version": "0.8.8","type": "module","scripts": {"dev": "vite",diff --git a/slides/src/charts.ts b/slides/src/charts.tsindex 7dddf235..70b52414 100644--- a/slides/src/charts.ts+++ b/slides/src/charts.ts@@ -523,6 +523,10 @@ export function mountChart(el: ChartElement, host: HTMLElement, fromOption?: Rec}function showTip(title: string, rows: Array<{ name: string; value?: string; color: string }>, x: number, y: number) {+ // in fullscreen, only the fullscreened element's subtree paints — the+ // tip must live inside it (fixed coords stay viewport-correct)+ const tipHost = document.fullscreenElement ?? document.body+ if (tipEl.parentElement !== tipHost) tipHost.appendChild(tipEl)tipEl.innerHTML =(title ? `<b>${escapeHtml(title)}</b><br>` : '') +rows.map((r) =>diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.tsindex 54ce6fbf..d3d46316 100644--- a/slides/src/editor/editor.ts+++ b/slides/src/editor/editor.ts@@ -566,7 +566,7 @@ export class Editor {num.textContent = String(this.linearNumber(i))}// thumb width tracks the (resizable) sidebar; states render smaller- const base = Math.max(96, this.panelW.left - 40)+ const base = Math.max(96, this.panelW.left - 52)const surface = renderThumbnail(slide, this.store.doc, isState ? Math.round(base * 0.84) : base)if (slide.comments?.some((c) => !c.resolved)) {const badge = div('ed-thumb-cmt')@@ -752,7 +752,7 @@ export class Editor {this.thumbTimer = window.setTimeout(() => {const thumbs = this.sidebar.querySelectorAll<HTMLElement>('.ed-thumb')if (thumbs.length !== this.store.doc.slides.length) return this.rebuildSidebar()- const base = Math.max(96, this.panelW.left - 40)+ const base = Math.max(96, this.panelW.left - 52)thumbs.forEach((item) => {const slide = this.store.doc.slides[Number(item.dataset.index)]if (!slide) returndiff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.tsindex 8e1ebe4b..0e739b2d 100644--- a/slides/src/editor/panels.ts+++ b/slides/src/editor/panels.ts@@ -118,8 +118,8 @@ export class PropsPanel {// --- builders ---------------------------------------------------------------private static readonly PAGE_PRESETS: Record<string, { w: number; h: number }> = {- 'Widescreen 16:9': { w: 1600, h: 900 },- 'Classic 4:3': { w: 1200, h: 900 },+ 'Widescreen 16:9': { w: 1280, h: 720 },+ 'Classic 4:3': { w: 960, h: 720 },'Square 1:1': { w: 1080, h: 1080 },'Portrait 9:16': { w: 1080, h: 1920 },'A4 landscape': { w: 1123, h: 794 },diff --git a/slides/src/styles.css b/slides/src/styles.cssindex f4ed4426..b312aed5 100644--- a/slides/src/styles.css+++ b/slides/src/styles.css@@ -121,6 +121,8 @@ html, body {width: var(--panew, 188px);flex: none;overflow-y: auto;+ overflow-x: hidden;+ scrollbar-gutter: stable;padding: 12px;display: flex;flex-direction: column;@@ -132,6 +134,7 @@ html, body {.ed-thumb {position: relative;+ max-width: 100%;border: 2px solid var(--line);border-radius: 8px;overflow: hidden;