From 5d61dce12b3248be33a2972befd6d400eb35627f Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 29 Jul 2026 12:17:54 +0000 Subject: [PATCH] Center cart's CartTrustBadges list below 640px MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous TrustRow.tsx fix didn't touch this — the cart summary sidebar renders its own inline trust-badge list, not the shared TrustRow component. Each row was w-full unconditionally, so items-center on the container was a no-op (a full-width flex child centers to no visible effect). Now w-auto + justify-center below sm: (icon+title as a compact centered unit), w-full + justify-start (+ flex-1 on the title) from sm: up, matching the tiered-alignment pattern used elsewhere (Hero's social proof, TrustRow.tsx). --- app/cart/components/CartContent.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/cart/components/CartContent.tsx b/app/cart/components/CartContent.tsx index a82ea0b..c0939ff 100644 --- a/app/cart/components/CartContent.tsx +++ b/app/cart/components/CartContent.tsx @@ -457,12 +457,20 @@ export function CartContent({ {/* Title only — /checkout renders the same CartTrustBadges - docs with description too, see CheckoutContent.tsx. */} -
+ docs with description too, see CheckoutContent.tsx. + Centered below sm: (640px), left-aligned from sm: up — + each row is w-full sm:+ only, so the icon+title sits as a + compact centered unit below sm: (a w-full row would make + items-center on the container above a no-op) and expands + to a left-aligned full-width row once there's more + horizontal room. items-start on the container gives every + row the same left edge once left-aligned, so nothing + reads staggered/crooked between rows. */} +
{trustBadges.map((b) => ( -
+
- {b.title} + {b.title}
))}