diff --git a/test-harness/editor/Editor.tsx b/test-harness/editor/Editor.tsx index db51382..bfe7b7b 100644 --- a/test-harness/editor/Editor.tsx +++ b/test-harness/editor/Editor.tsx @@ -585,6 +585,7 @@ function SegmentedControl({ // ── Main editor ───────────────────────────────────────────────────────────── export function Editor() { + const [sidebarOpen, setSidebarOpen] = useState(true); const [direction, setDirection] = useState("clockwise"); const [diceCount, setDiceCount] = useState<0 | 1 | 2>(2); const [die1, setDie1] = useState(1); @@ -689,80 +690,110 @@ export function Editor() { {/* ── Controls panel ── */}
-

- Board Editor -

- - {/* Direction */} -
- Direction - -
- - {/* Dice */} -
- Dice -
+

+ Board Editor +

+ +
+
+ {/* Direction */} +
+ Direction -
- {diceCount >= 1 && ( -
-
-
- Die 1 -
- -
- {diceCount === 2 && ( +
+ + {/* Dice */} +
+ Dice +
+ +
+ {diceCount >= 1 && ( +
- Die 2 + Die 1
- )} -
- )} -
+ {diceCount === 2 && ( +
+
+ Die 2 +
+ +
+ )} +
+ )} + - {/* Doubling cube */} -
- - - - {showDoublingCube && ( -
-
-
- Value + {/* Doubling cube */} +
+ + + + {showDoublingCube && ( +
+
+
+ Value +
+
- -
-
-
- Owner +
+
+ Owner +
+
- -
-
- )} -
- - {/* Positions */} -
- Positions -
- {(["default", "overload", "random"] as const).map((name) => ( + {name} + + ))} - ))} - -
- -
+
+ +
- {/* Theme */} -
- Theme - + applyThemePreset(e.target.value as keyof typeof presets) + } + defaultValue="" + > + + {(Object.keys(presets) as (keyof typeof presets)[]).map( + (name) => ( + + ), + )} + + {THEME_LABELS.map(([key, label]) => ( + updateThemeColor(key, v)} + /> ))} - - {THEME_LABELS.map(([key, label]) => ( - updateThemeColor(key, v)} - /> - ))} +