feat(webui): Apple-style overview pass + roomier stat tiles

- Grid row height 80→108px so a 1-row stat tile's icon + 3 text lines clear
  the padding with real breathing room (the previous fix still clipped ~8px);
  stat tile gets an airier layout (size-10 icon, text-lg value, py-3.5).
- Carry the app's Apple language across the homepage: inner surfaces and
  empty-state containers round to xl, empty-state icons calm to size-8/opacity,
  edit hint + first-run nudge rounded consistently.
This commit is contained in:
DrSmoothl committed 2026-06-14 16:20:19 +08:00
1 parent 44a29c6ee4
commit 8f61b1486e
2 files changed
+23 -20

No files matched your search

+5 -2
View File
@@ -6,8 +6,11 @@ import type { LogLevel, UiLayoutItem } from '@/types';
// (render + min sizes), and the layout editor (labels) without import cycles.
export const GRID_COLS = 12;
/** px per grid row. Tiles are 1 row; cards a few rows. */
export const GRID_CELL_HEIGHT = 80;
/** px per grid row. Tiles are 1 row; cards a few rows. Sized so a 1-row stat
* tile's icon + 3 text lines (label + text-lg value + subtext) clear the
* py-3.5 padding with breathing room: item content ≈ cellHeight − 2·margin −
* card border ≈ 90px > the ~86px the content needs. */
export const GRID_CELL_HEIGHT = 108;
export const GRID_MARGIN = 8;
export interface GridWidgetSpec {