Fit more rows on one screen: 64px rows, 8px gaps, tighter top
Home rows shrink to 64px with 8px gaps and 40px icons, and the space above and below the Windows panel is trimmed, so about two more rows of apps fit on a phone screen. widget_rows and the resize test follow the new rows. 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
+11
-11
No files matched your search
+2
-2
@@ -629,7 +629,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 + 12 + 42) // 84
|
||||
k: i32 = (h + 8 + 36) // 72
|
||||
if k < 1:
|
||||
k = 1
|
||||
return k
|
||||
@@ -644,7 +644,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 (72px rows, 12px gaps; style.css).
|
||||
# Its height spans whole rows of app tiles (64px rows, 8px 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