From 522cf7a87ef96cfd611e31357bf4526bd3b31398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 4 Nov 2026 09:56:24 +0100 Subject: [PATCH] style: improve text wrapping and overflow handling in components - Enhanced text wrapping and overflow handling in BreadcrumbsBase, ItemCard, PageHeader, Show (Products), and Show (Recipes) components for better responsiveness and readability. --- .../ts/front/Components/Base/BreadCrumbsBase.tsx | 12 +++++++----- resources/ts/front/Components/Theme/ItemCard.tsx | 10 ++++++++-- .../ts/front/Components/Theme/PageHeader.tsx | 16 ++++++++++++++-- resources/ts/front/Pages/Products/Show.tsx | 4 ++-- resources/ts/front/Pages/Recipes/Show.tsx | 4 ++-- 5 files changed, 33 insertions(+), 13 deletions(-) diff --git a/resources/ts/front/Components/Base/BreadCrumbsBase.tsx b/resources/ts/front/Components/Base/BreadCrumbsBase.tsx index 57538180..9a41a719 100644 --- a/resources/ts/front/Components/Base/BreadCrumbsBase.tsx +++ b/resources/ts/front/Components/Base/BreadCrumbsBase.tsx @@ -25,21 +25,23 @@ export default function BreadcrumbsBase({ {breadcrumbs.map((breadcrumb, breadcrumbIndex) => ( diff --git a/resources/ts/front/Components/Theme/ItemCard.tsx b/resources/ts/front/Components/Theme/ItemCard.tsx index 87c1dde2..15302f12 100644 --- a/resources/ts/front/Components/Theme/ItemCard.tsx +++ b/resources/ts/front/Components/Theme/ItemCard.tsx @@ -56,14 +56,20 @@ export default function ItemCard({
{title?.text && ( -

+

{title.text}

)} {subtitle?.text && (
-

+

{title.text}

-

{description.text}

+

+ {description.text} +

); } diff --git a/resources/ts/front/Pages/Products/Show.tsx b/resources/ts/front/Pages/Products/Show.tsx index 2493dae9..968e9981 100644 --- a/resources/ts/front/Pages/Products/Show.tsx +++ b/resources/ts/front/Pages/Products/Show.tsx @@ -151,8 +151,8 @@ export default function Show({
{/* Left Column: Info */} -
-

+
+

{product.name}

diff --git a/resources/ts/front/Pages/Recipes/Show.tsx b/resources/ts/front/Pages/Recipes/Show.tsx index 6101ec7e..d07cd9fb 100644 --- a/resources/ts/front/Pages/Recipes/Show.tsx +++ b/resources/ts/front/Pages/Recipes/Show.tsx @@ -187,8 +187,8 @@ export default function Show({
{/* Left Column: Info */} -
-

+
+

{recipe.name}