Fit more on the home screen: five columns, shorter rows, smaller icons

The home grid gets one more column than the drawer (5 on a phone, 6 on wider
screens), 76px rows with 16px gaps and 44px icons. Widgets still snap to whole
rows; widget_rows and the resize test follow the new row size.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
This commit is contained in:
Claude committed 2026-10-22 05:47:42 +00:00
1 parent 3f64b32df8
commit 8dd46b20a5
4 files changed
+20 -14

No files matched your search

+3 -3
View File
@@ -111,11 +111,11 @@ const BASE = process.env.BASE || "http://localhost:8000";
await p.mouse.move(hd.x + hd.width / 2, hd.y + hd.height / 2);
await p.mouse.down();
const ws = await p.locator(".widget-slot").boundingBox();
await p.mouse.move(ws.x + tile.width * 2.1, ws.y + 230, { steps: 8 }); await settle();
await p.mouse.move(ws.x + tile.width * 2.1, ws.y + 175, { steps: 8 }); await settle();
await p.mouse.up(); await settle();
const [w1, h1] = await size();
assert.ok(w1 < w0 && Math.abs(w1 - (2 * tile.width + 8)) < 3, `two columns wide: ${w1} (tile ${tile.width})`);
assert.equal(h1, Math.round(2 * tile.height + 20), "snapped to two whole rows of tiles");
assert.equal(h1, 2 * 76 + 16, "snapped to two whole rows of tiles");
assert.ok(await p.$(".widget-slot.resizing"), "letting go of a handle keeps the handles");
await p.click(".resize-bar >> text=Done"); await settle();
assert.ok(!(await p.$(".resize-handle")));
@@ -132,7 +132,7 @@ const BASE = process.env.BASE || "http://localhost:8000";
await p.mouse.move(first.x + first.width / 2, first.y + first.height / 2, { steps: 8 }); await settle();
await p.mouse.up(); await settle();
assert.equal((await order())[0], "W", "dragged to the front");
// the apps flow into the cells beside it: a 2x2 widget leaves room for all four
// the apps flow into the cells beside it: a 2x2 widget in 5 columns leaves room for all four
const beside = await p.$eval(".widget-slot", (w) => {
const r = w.getBoundingClientRect();
return [...document.querySelectorAll(".slots .tile")].filter((t) => {