From e95c175f9b4191c46e390c09a7fc530c2b7a84a1 Mon Sep 17 00:00:00 2001 From: Angel Capetillo Zavala Date: Thu, 12 Nov 2026 01:36:28 -0600 Subject: [PATCH] fix(shell): load the domain menu deferred and let the header wrap on narrow screens The menu and its overlay were in the initial bundle of every route (+183 kB); they now load in their own chunk, with a same-size placeholder. On phones the title moves to a second row instead of being squeezed beside the selector. (cherry picked from commit 2ccddf80dbbe41a328281fcdc1c95ebe421f4191) --- src/app/app.html | 15 ++++++--------- src/app/app.scss | 16 +++++++--------- src/app/app.ts | 5 ++--- src/app/domain-selector.scss | 10 ++++++++++ src/app/domain-selector.ts | 28 ++++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 21 deletions(-) create mode 100644 src/app/domain-selector.scss create mode 100644 src/app/domain-selector.ts diff --git a/src/app/app.html b/src/app/app.html index 0cbc82f..7312335 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -6,15 +6,12 @@ @if (activeDomain(); as domain) { {{ title }} - - - @for (option of otherDomains(); track option) { - {{ domainLabels[option] }} - } - + @defer (on immediate) { + + } @placeholder { + + + } } @else {