Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
The ⋯ menu is no longer trapped under the panel drawers (#286)
nyblnetb3b4304fdc5b
diff --git a/CLAUDE.md b/CLAUDE.mdindex 17d3ef4c..b1d182c8 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -594,6 +594,15 @@ names provisional.svg on the page (CSS animations with fill modes even beat later static rules).8. Tiny text labels make unusable click targets when scaled down — interactivecontrols get padded transparent `link` overlay rects, not links on the text itself.+9. **`.ed-topbar`'s z-index is a CEILING, not just an order.** The bar is a flex+ item of `.ed-root`, and a flex item honours z-index even at+ `position: static` — so the value opens a stacking context that caps every+ descendant. At 20 the ⋯ menu's own `z-index: 50` was clamped to 20 and the+ phone-mode panel drawers (z 40) painted straight over it: the menu rendered+ in full, and every click landed on the panel behind it. Raising the MENU can+ never fix this; only the ceiling moves. Same trap for any future chrome that+ must escape the bar. Diagnose with `document.elementsFromPoint()` — the menu+ sat fourth in the stack under its own coordinates.- **Compressed shell (Phase 1)**: `scripts/postbuild-compress.mjs` (runs inbuild:single) deflates runtime JS+CSS into base64 `bento/deflate-b64` scriptdiff --git a/slides/src/styles.css b/slides/src/styles.cssindex 030a4793..6e035c2a 100644--- a/slides/src/styles.css+++ b/slides/src/styles.css@@ -157,7 +157,16 @@ option { background: var(--field); color: var(--ink); }8px max(14px, env(safe-area-inset-left), var(--tray-safe-left, 0px));background: var(--surface);border-bottom: 1px solid var(--line);- z-index: 20;+ /* Above the phone-mode panel drawers (z 40), and this number is doing more+ work than it looks. The bar is a FLEX ITEM of .ed-root, and a flex item+ honours z-index even at position:static — so this value does not merely+ order the bar, it opens a STACKING CONTEXT that caps everything inside it.+ At 20 the ⋯ menu's own z-index: 50 was capped at 20 and the drawers at 40+ painted straight over it: on a narrow window with the properties panel+ open, the menu rendered in full and every click landed on the panel behind+ it. Raising its own z-index could never have fixed that — only the ceiling+ moves. Keep this above the drawers and below the dialogs/toasts (59+). */+ z-index: 50;}.ed-logo { display: flex; align-items: center; gap: 7px; font-size: 15px; white-space: nowrap; }