From ccd798352452ffffa660f21632157b5c6d8d0444 Mon Sep 17 00:00:00 2001 From: Dave Earley Date: Fri, 4 Sep 2026 20:35:31 +0100 Subject: [PATCH] Fix: Add-on highlight message overflows and crushes the title The add-on highlight message was a nowrap pill inside the title's flex row, so any message of real length clipped or forced the title onto multiple lines, especially on mobile. Render it as a full-width banner strip across the top of the highlighted add-on card instead, matching the product-level highlight treatment, so it wraps freely and reads as a highlight rather than a tag. --- .../product-widget/SelectProducts/index.tsx | 10 +++--- frontend/src/styles/widget/default.scss | 31 ++++++++++--------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/routes/product-widget/SelectProducts/index.tsx b/frontend/src/components/routes/product-widget/SelectProducts/index.tsx index 8d5f27328..4a5ff048d 100644 --- a/frontend/src/components/routes/product-widget/SelectProducts/index.tsx +++ b/frontend/src/components/routes/product-widget/SelectProducts/index.tsx @@ -836,13 +836,13 @@ const SelectProducts = (props: SelectProductsProps) => { return (
+ {addon.is_highlighted && addon.highlight_message && ( +
+ {addon.highlight_message} +
+ )}
{addon.title} - {addon.is_highlighted && addon.highlight_message && ( - - {addon.highlight_message} - - )}