Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Arrange rows compacted: inline labels, one row per group
nyblnet8ac9df040847
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.tsindex c7c60c0e..90461a74 100644--- a/slides/src/editor/panels.ts+++ b/slides/src/editor/panels.ts@@ -744,13 +744,14 @@ export class PropsPanel {return b}const group = (caption: string, buttons: HTMLElement[]) => {- const cap = document.createElement('div')+ const row = document.createElement('div')+ row.className = 'ed-arrange-row'+ const cap = document.createElement('span')cap.className = 'ed-arrange-cap'cap.textContent = caption- const row = document.createElement('div')- row.className = 'ed-ops ed-arrange'+ row.appendChild(cap)row.append(...buttons)- this.host.append(cap, row)+ this.host.appendChild(row)}group('Align', [@@ -761,7 +762,7 @@ export class PropsPanel {textBtn('⇳', 'Align vertical middles', () => this.align(els, 'middleY')),textBtn('⤓', 'Align bottom', () => this.align(els, 'bottom')),])- group('Distribute · size', [+ group('Space', [textBtn('⋯', 'Equal horizontal gaps (3+)', () => this.distribute(els, 'x'), els.length >= 3),textBtn('⋮', 'Equal vertical gaps (3+)', () => this.distribute(els, 'y'), els.length >= 3),textBtn('↔', 'Match widths — first selected sets the size (2+)', () => this.matchSize(els, 'w'), els.length >= 2),diff --git a/slides/src/styles.css b/slides/src/styles.cssindex 56c4f2a0..162a04a0 100644--- a/slides/src/styles.css+++ b/slides/src/styles.css@@ -487,15 +487,17 @@ html, body {border-radius: 3px;}-/* arrange kit: captioned, balanced button rows */+/* arrange kit: one compact row per group — tiny label left, buttons right */+.ed-arrange-row { display: flex; align-items: center; gap: 3px; margin: 3px 0; }.ed-arrange-cap {- font-size: 9.5px;+ flex: none;+ width: 46px;+ font-size: 9px;font-weight: 700;text-transform: uppercase;- letter-spacing: 0.07em;+ letter-spacing: 0.06em;color: var(--muted);- opacity: 0.8;- margin: 8px 0 3px;+ opacity: 0.85;}.ed-arrange { display: flex; gap: 4px; margin-top: 0; }.ed-arrange-btn {