From 8ecceaef3d4a1250cdc2634467de858d52a26fec Mon Sep 17 00:00:00 2001 From: WenRenHai <70972819+People-Sea@users.noreply.github.com> Date: Tue, 23 Sep 2025 18:09:30 +0800 Subject: [PATCH] fix: use line-clamp in columns to handle text overflow (#17912) * fix: adjust TextColumn state item markup to wrap content in

and improve attribute handling * fix: code style * fix: retain the most simplified dom --- packages/tables/src/Columns/TextColumn.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/tables/src/Columns/TextColumn.php b/packages/tables/src/Columns/TextColumn.php index 7e52bbf4aa..4cf7d647b7 100644 --- a/packages/tables/src/Columns/TextColumn.php +++ b/packages/tables/src/Columns/TextColumn.php @@ -347,7 +347,8 @@ class TextColumn extends Column implements HasEmbeddedView if ( ($stateCount === 1) && (! $isBulleted) && - (! $hasDescriptions) + (! $hasDescriptions) && + (! $lineClamp) ) { $stateItem = Arr::first($state); [ @@ -363,7 +364,7 @@ class TextColumn extends Column implements HasEmbeddedView ->merge($stateItemAttributes->getAttributes(), escape: false) ->toHtml() ?>> - toHtml() ?>> + toHtml() ?>>