From b2bffd13a3bdaac9b0cc88ee56be806e463ce0b0 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 22 Jul 2026 23:31:10 +0000 Subject: [PATCH] Fix MwSt./Versand line wrapping onto two lines in narrow pricing panels "inkl. X% MwSt. zzgl. Versand" got long enough (once the rate is spelled out) that sharing a flex row with the price wrapped mid-sentence in Pricing.tsx's/ProductSpotlight's narrow columns. Moved onto its own line instead of inline next to the price. Co-Authored-By: Claude Sonnet 5 --- app/components/ProductSpotlight.tsx | 5 ++++- app/todo-cards/components/Pricing.tsx | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/components/ProductSpotlight.tsx b/app/components/ProductSpotlight.tsx index 94d0f3e..00196c3 100644 --- a/app/components/ProductSpotlight.tsx +++ b/app/components/ProductSpotlight.tsx @@ -79,14 +79,17 @@ export async function ProductSpotlight() {

{product.spotlightText || product.description}

+ {/* MwSt./Versand disclosure on its own line, not crammed into + the price row itself — same reasoning as todo-cards' + Pricing.tsx (identical text, same narrow-column risk). */}
{discount !== null && (

{formatPrice(product.compareAtPrice!)}

)}

{formatPrice(product.price)}

-

inkl. {taxRate}% MwSt. zzgl. Versand

+

inkl. {taxRate}% MwSt. zzgl. Versand

Lieferzeit: {shipping.totalDays.min}–{shipping.totalDays.max} Werktage innerhalb Deutschlands

diff --git a/app/todo-cards/components/Pricing.tsx b/app/todo-cards/components/Pricing.tsx index 2dc39f8..ba87005 100644 --- a/app/todo-cards/components/Pricing.tsx +++ b/app/todo-cards/components/Pricing.tsx @@ -79,14 +79,19 @@ export async function Pricing() {
+ {/* MwSt./Versand disclosure on its own line, not crammed into + the price row itself — "inkl. X% MwSt. zzgl. Versand" is + long enough (once the rate is spelled out) that sharing a + row with the price in this panel's narrow fixed-width + column wrapped it mid-sentence onto a second line. */}
{discount !== null && (

{formatPrice(product.compareAtPrice!)}

)}

{formatPrice(product.price)}

-

inkl. {taxRate}% MwSt. zzgl. Versand

+

inkl. {taxRate}% MwSt. zzgl. Versand

Lieferzeit: {shipping.totalDays.min}–{shipping.totalDays.max} Werktage innerhalb Deutschlands