Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

v0.8.6: present buttons to bottom-left, side by side

nyblnetaf80a2352973
diff --git a/CLAUDE.md b/CLAUDE.md
index f00bb7b3..02d5faec 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -191,8 +191,9 @@ One HTML file = the document + viewer + editor. See `README.md` for the vision.
flush to the screen edge when collapsed); phones (<700px) boot with
both panels collapsed (canvas-first; chevrons/[/] bring them back).
Update chip sits beside the wordmark and exists ONLY when an update
- is found. Present lives as FLOATING buttons over the canvas (not the
- topbar): big round FAB = fullscreen present, small one above it =
+ is found. Present lives as FLOATING buttons at the canvas's BOTTOM-LEFT
+ (zoombar owns the right corner): big round FAB = fullscreen present,
+ small one BESIDE it (never above — it would cover the slide) =
tab-fill mode (testing/window-sharing); both call editor.present(
fromStart, fullscreen) → startPresentation opts.fullscreen. Save is a dropdown: copy (identity-keeping invite) / new
deck (fresh identity) / template. "Live" button popover: name field,
diff --git a/slides/package.json b/slides/package.json
index 8b033664..61f60771 100644
--- a/slides/package.json
+++ b/slides/package.json
@@ -1,7 +1,7 @@
{
"name": "bento-slides",
"private": true,
- "version": "0.8.5",
+ "version": "0.8.6",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index b8d9d2a1..21bd7e51 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -229,7 +229,7 @@ export class Editor {
tabFab.innerHTML = ICONS.window
tabFab.title = t('Present in this tab — handy for testing or sharing a window')
tabFab.addEventListener('click', () => this.present(false, false))
- fabs.append(tabFab, fsFab)
+ fabs.append(fsFab, tabFab)
canvasWrap.appendChild(fabs)
this.props = div('ed-props')
main.append(this.sidebar, this.makeResizer('left'), canvasWrap, this.makeResizer('right'), this.props)
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 3cc82354..f4ed4426 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -1209,13 +1209,14 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
border-bottom-right-radius: 0;
}
-/* floating present buttons over the work area (zoombar sits below them) */
+/* floating present buttons, bottom-LEFT of the work area (zoombar owns the
+ right corner); side by side so neither ever covers the slide above */
.ed-present-fabs {
position: absolute;
- right: 14px;
- bottom: 64px;
+ left: 14px;
+ bottom: 14px;
display: flex;
- flex-direction: column;
+ flex-direction: row;
align-items: center;
gap: 10px;
z-index: 11;