mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
The rail was fixed at the mac's smallest scale because both halves of its geometry hard-coded the numbers that scale produces. Now the page and the Rust side each rebuild every metric from the stored scale, with the mac's rounding, so the two stay in step at any size between 60 and 120 percent. dockGeometry.ts exports a cached metrics(scale) instead of a frozen M, and dock.rs grows a Metrics struct with the same base values. The bubble keeps the mac's floor of 0.9: below that its type stops being readable, so a 60 percent rail still gets a 315 px card. What a stylesheet rule needs rather than an element (the row gap, the gauge box, the percent type, the bubble's spacings) arrives as a --dock-* variable on .dock. Writing a dock preference now re-reads the geometry in Rust and moves the window, because the page can only paint inside the window it is given. The settings section says appearance and gauge shape are still stored and unread; size no longer is. |
||
|---|---|---|
| .. | ||
| components | ||
| lib | ||
| settings | ||
| App.tsx | ||
| dock.css | ||
| Dock.tsx | ||
| dockGeometry.ts | ||
| main.tsx | ||
| providerIcons.tsx | ||
| Settings.tsx | ||
| styles.css | ||