fix(ui): let tile and card titles wrap instead of cutting them

Seven tiles passed titleClassName="truncate" to TileHeader, so German
compounds ended in an ellipsis on a narrow tile ("Erholungs-..."). The
title is the only thing naming the figure. TileHeader now owns the wrap
(min-w-0, break-words, hyphens-auto from the document lang) and has no
class override left to truncate with; CardTitle carries the same
break-words/hyphens-auto. A guard refuses truncate or nowrap on any
CardTitle or TileHeader in the tree.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 15:17:37 +02:00
1 parent c245a3f2af
commit 7af2e3d29a
10 files changed
+119 -23

No files matched your search

+4 -1
View File
@@ -63,7 +63,10 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-title"
className={cn("leading-none font-semibold", className)}
className={cn(
"leading-none font-semibold break-words hyphens-auto",
className,
)}
{...props}
/>
);