Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Sidebar: state thumbs size to content, whole sidebar centres

nyblnetd3f45ffaddb3
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 52ddc82a..ff5ae124 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -124,6 +124,7 @@ html, body {
padding: 12px;
display: flex;
flex-direction: column;
+ align-items: center;
gap: 10px;
background: #fff;
border-right: 1px solid var(--line);
@@ -164,12 +165,13 @@ html, body {
.bento-thumb-surface { overflow: hidden; pointer-events: none; }
-.ed-add-slide { border: 1.5px dashed var(--line); justify-content: center; color: var(--muted); }
+.ed-add-slide { border: 1.5px dashed var(--line); justify-content: center; color: var(--muted); align-self: stretch; }
-/* interactive-state thumbs: slightly smaller, centred under their parent */
+/* interactive-state thumbs: slightly smaller, centred under their parent.
+ No explicit width — the box sizes to its rendered surface (like normal
+ thumbs), so the whole slide stays visible inside the border. */
.ed-thumb-state {
- width: 124px;
- margin: -2px auto 0;
+ margin-top: -2px;
opacity: 0.72;
border-style: dashed;
}