Home: no sideways scrolling on phones
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa4b562fcc
commit
7f38ac5366
1 file changed
+6
-2
+6
-2
@@ -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; }
|
||||
Reference in new issue
Block a user