Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

v0.8.11: arrange buttons on a fixed-track grid — no stretching

nyblnet2a46f8b1c53a
diff --git a/slides/package.json b/slides/package.json
index 9aae1d1f..15b7788e 100644
--- a/slides/package.json
+++ b/slides/package.json
@@ -1,7 +1,7 @@
{
"name": "bento-slides",
"private": true,
- "version": "0.8.10",
+ "version": "0.8.11",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 38c04af7..b68e4aed 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -592,16 +592,18 @@ html, body {
}
/* arrange kit: one compact row per group — tiny label left, buttons right */
+/* arrange rows: caption + a shared 6-column track of near-fixed square
+ buttons — columns align vertically across Align/Space/Order, buttons
+ never stretch with the panel, spare width just rests at the row end */
.ed-arrange-row {
- display: flex;
+ display: grid;
+ grid-template-columns: 40px repeat(6, minmax(20px, 26px));
align-items: center;
gap: 3px;
margin: 3px 0;
}
-/* buttons share the remaining line equally — balanced at any panel width,
- never wrapping into orphans */
+.ed-arrange-row .ed-arrange-cap { width: auto; }
.ed-arrange-row .ed-btn {
- flex: 1 1 0;
min-width: 0;
padding: 5px 0;
justify-content: center;