From 69c51b90cb2ed0b18699c5a1d5b2118f270b6613 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 1 Feb 2026 07:50:25 -0800 Subject: [PATCH] Fix header preview box and brand color swatch for mobile - Header preview: max-width 1200px, white background, no border-radius on img - Brand color swatch: change span to div with min-width/min-height and flex-shrink:0 to prevent collapse on mobile flex layouts - Remove headerPreviewWrapper brand color tinting (wrapper stays white) - Fix swatch border from white-alpha to black-alpha for visibility on white cards Co-Authored-By: Claude Opus 4.5 --- portal/index.html | 6 +++--- portal/portal.js | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/portal/index.html b/portal/index.html index 83210ea..35d1db3 100644 --- a/portal/index.html +++ b/portal/index.html @@ -579,8 +579,8 @@

Displayed at the top of your menu. Recommended: 1200x400px

-
- +
+
diff --git a/portal/portal.js b/portal/portal.js index 15a940c..c767d02 100644 --- a/portal/portal.js +++ b/portal/portal.js @@ -742,8 +742,6 @@ const Portal = { this.brandColor = brandColor; const swatch = document.getElementById('brandColorSwatch'); if (swatch) swatch.style.background = brandColor; - const headerWrapper = document.getElementById('headerPreviewWrapper'); - if (headerWrapper) headerWrapper.style.background = brandColor; } // Load header preview @@ -1247,8 +1245,6 @@ const Portal = { this.brandColor = color; const swatch = document.getElementById('brandColorSwatch'); if (swatch) swatch.style.background = color; - const headerWrapper = document.getElementById('headerPreviewWrapper'); - if (headerWrapper) headerWrapper.style.background = color; this.closeModal(); this.toast('Brand color saved!', 'success'); } else {