From 82b412f71855a8f60fb47be6bb37bdaf16bf4da1 Mon Sep 17 00:00:00 2001 From: Paul Nothaft <53005142+the-luap@users.noreply.github.com> Date: Fri, 11 Sep 2026 15:37:39 +0200 Subject: [PATCH] fix(admin): keep header-style tiles from overflowing their cards (stable) (#1423) Apply the header-style overflow fix to stable: size the grids from their container width and wrap long translated labels within each card. --- .../theme-customizer/HeaderStyleCard.tsx | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/admin/theme-customizer/HeaderStyleCard.tsx b/frontend/src/components/admin/theme-customizer/HeaderStyleCard.tsx index 5d45a3e4..ee4b8821 100644 --- a/frontend/src/components/admin/theme-customizer/HeaderStyleCard.tsx +++ b/frontend/src/components/admin/theme-customizer/HeaderStyleCard.tsx @@ -22,7 +22,13 @@ export const HeaderStyleCard: React.FC = ({ localTheme, ha

{t('branding.headerStyleDescription', 'Choose how the gallery header appears. The header style is independent of the photo layout.')}

-
+ {/* auto-fit/minmax rather than viewport breakpoints (#1412): the + breakpoints size the columns off the WINDOW, but this card sits in a + settings panel that is far narrower, so `lg:grid-cols-3` produced + three ~85px columns no German string could fit in. A minimum track + width lets the column count follow the container instead, and drops + to fewer columns when there is no room. */} +
{(Object.keys(headerStyleIcons) as HeaderStyleType[]).map((style) => (