From a1f0989b8076aa73e18d4d18c2c776c3231affa7 Mon Sep 17 00:00:00 2001 From: mattbox03 <26332097+mattbox03@users.noreply.github.com> Date: Thu, 19 Nov 2026 15:28:00 +0100 Subject: [PATCH] site: keep the phone header on one row with the RecoveryGateway name Below 441 px the name stacks as "Recovery / Gateway" so the search, board, support and menu icons no longer wrap to a second row; below 344 px only the logo mark remains (was below 390 px). Wider layouts are unchanged. --- tools/build_site.py | 2 +- website/assets/site.css | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/build_site.py b/tools/build_site.py index 197697d..7e56d48 100644 --- a/tools/build_site.py +++ b/tools/build_site.py @@ -359,7 +359,7 @@ def render(page: Page, pages: list[Page]) -> str:
- RecoveryGateway + RecoveryGateway
diff --git a/website/assets/site.css b/website/assets/site.css index b80f450..22dcc44 100644 --- a/website/assets/site.css +++ b/website/assets/site.css @@ -213,7 +213,10 @@ summary { cursor: pointer; font-weight: 600; } figure.diagram img { min-width: 820px; max-width: none; } figure.diagram figcaption::after { content: " Swipe sideways to see the whole diagram."; } } -@media (max-width: 389px) { .brand span { display: none; } } +/* Phones: the name stacks as "Recovery / Gateway" (like the compact logo) so the + * header icons stay on one row; below 344 px only the logo mark remains. */ +@media (max-width: 440px) { .brand > span { display: flex; flex-direction: column; line-height: 1.1; } } +@media (max-width: 343px) { .brand > span { display: none; } } @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } } .release-note { margin: 0 0 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid #1FC97A; border-radius: 12px; font-size: .94rem; line-height: 1.65; } .release-note strong { display: block; margin-bottom: .3rem; }