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:
4 files changed
+20
-14
No files matched your search
+2
-2
@@ -624,7 +624,7 @@ def view_resize_bar() -> None:
|
||||
|
||||
def widget_rows(h: i32) -> i32:
|
||||
"""Rows of app tiles nearest to a widget height in CSS px, at least one."""
|
||||
k: i32 = (h + 20 + 54) // 108
|
||||
k: i32 = (h + 16 + 46) // 92
|
||||
if k < 1:
|
||||
k = 1
|
||||
return k
|
||||
@@ -639,7 +639,7 @@ def view_home_slot(i: i32) -> None:
|
||||
cls_if("lifted", i == lifted)
|
||||
cls_if("resizing", i == resizing)
|
||||
attr_num("data-slot", i)
|
||||
# Its height spans whole rows of app tiles (88px rows, 20px gaps; style.css).
|
||||
# Its height spans whole rows of app tiles (76px rows, 16px gaps; style.css).
|
||||
s_set(scratch, "grid-row:span ")
|
||||
s_add_num(scratch, widget_rows(hh[i]))
|
||||
if hw[i] > 0:
|
||||
|
||||
Reference in new issue
Block a user