From 7f38ac53666fdc517d187e3192738706a84df30a Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Thu, 22 Oct 2026 14:41:56 -0400 Subject: [PATCH] Home: no sideways scrolling on phones Co-Authored-By: Claude Sonnet 5.5 --- public/style.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index ec511cd..d6bfb5b 100644 --- a/public/style.css +++ b/public/style.css @@ -32,7 +32,7 @@ h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: v .sub { color: var(--muted); margin: 0 0 8px; } .wrap { max-width: 1100px; margin: 0 auto; } -.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); } +.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 108px; text-align: left; } .tile:active, .row:active { background: var(--panel2); } @@ -716,7 +716,7 @@ body.nav-mini .ngrp span { display: none; } .homeact { display: flex; gap: 8px; flex-wrap: wrap; } .homeact .btn { margin: 0; } .home .searchbar { margin: 14px 0 4px; } -.homecols { display: grid; grid-template-columns: 1fr; gap: 0 24px; align-items: start; } +.homecols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; align-items: start; } .hcol:empty, .hcol > :empty { display: none; } .home .homeapps h2:first-child { margin-top: 24px; } .home .tile { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 12px 14px; border-radius: 14px; } @@ -746,3 +746,7 @@ body.nav-mini .ngrp span { display: none; } .home .tile small { align-self: start; } @media (max-width: 560px) { .homehead { flex-wrap: nowrap; align-items: center; } #qpal { display: none; } } /* the command palette is a keyboard thing: Quick add sits beside the greeting on a phone */ @media (max-width: 560px) { .homehead h1 { font-size: 24px; } .homeact .btn { white-space: nowrap; } #settabs { display: flex; } #settabs a { flex: 1; justify-content: center; padding: 6px 8px; } } + +/* Home never scrolls sideways: wide content shrinks or wraps instead */ +.home, .home .hcol, .home .homeapps { min-width: 0; max-width: 100%; } +#view { overflow-x: hidden; }