Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Drop redundant Rotate row; Position & size labels match row typography

nyblnet4677a996e76a
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.ts
index 90461a74..3ccd9f88 100644
--- a/slides/src/editor/panels.ts
+++ b/slides/src/editor/panels.ts
@@ -774,11 +774,6 @@ export class PropsPanel {
textBtn('↓', 'Send backward one step', () => this.step(els, -1)),
textBtn('⇊', 'Send to back', () => this.reorder(els, 'back')),
])
- group('Rotate', [
- textBtn('⟲', 'Rotate 90° counter-clockwise', () => this.rotateBy(els, -90)),
- textBtn('⟳', 'Rotate 90° clockwise', () => this.rotateBy(els, 90)),
- textBtn('0°', 'Reset rotation', () => this.rotateBy(els, null)),
- ])
const grouped = els.some((e) => e.groupId)
if (els.length > 1 || grouped) {
@@ -805,21 +800,6 @@ export class PropsPanel {
this.edit(() => { for (const el of els) el[dim] = ref }, true)
}
- /** Rotate by deg (null = reset to 0), normalized to -180..180. */
- private rotateBy(els: SlideElement[], deg: number | null) {
- this.edit(() => {
- for (const el of els) {
- if (deg === null) el.rotation = 0
- else {
- let r = (el.rotation + deg) % 360
- if (r > 180) r -= 360
- if (r < -180) r += 360
- el.rotation = r
- }
- }
- }, true)
- }
-
/** Single element aligns to the slide; a multi-selection aligns to its own bounds. */
private align(els: SlideElement[], edge: 'left' | 'centerX' | 'right' | 'top' | 'middleY' | 'bottom') {
const { width, height } = this.store.doc.size
diff --git a/slides/src/styles.css b/slides/src/styles.css
index b97efdb6..e58911b1 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -374,7 +374,7 @@ html, body {
}
.ed-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
-.ed-mini { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
+.ed-mini { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.ed-mini input {
width: 100%;
min-width: 0;