fix(#389): hide the sidebar unconditionally below 820px #524
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-389e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First real-phone screenshot (files-bao, iPhone) showed the sidebar back as an icon rail eating half the viewport, with the main column squeezed: stacked toolbar, single-column tiles. The tab bar, collapsed search and top bar all behaved correctly.
Root cause (from the one-shot's diagnostics): the 820px hide at rd-style line 676 (
@media(max-width:820px){… #app > aside{display:none}}) is immediately followed at line 677 by a top-level#app > aside{position:sticky; …}rule of equal specificity that re-establishes the aside's display later in the cascade — so the sidebar was never actually hidden on phones; the old@media (max-width: 700px){ aside{width:52px} aside .navlbl{display:none} }rule then shrank it into the icon rail. The #389 recon read the 820 rule and concluded the sidebar was gone below 820px; real phones disagreed.Fix: inside the existing ≤819px fence,
#app > aside{display:none !important}and#app{grid-template-columns:1fr !important}— the tab bar is the sidebar's replacement there, unconditionally. Desktop ≥820px untouched (fence gate re-verified).