fix(ui): keep the page-header title a sibling of its description

The grid change wrapped the heading in a cell div, which separated it
from the description paragraph the settings-score spec reads as its
following sibling. The heading is the grid item itself now.
This commit is contained in:
Marc-André Bombeck committed 2026-10-01 10:01:14 +02:00
1 parent 64c0b25411
commit 06e86ef584
1 file changed
+2 -2
+2 -2
View File
@@ -33,7 +33,7 @@ import { cn } from "@/lib/utils";
* `wrap-break-word` floor covers a word the hyphenation dictionary does not.
*/
const HEADING_CLASS =
"text-2xl font-bold tracking-tight hyphens-auto wrap-break-word";
"min-w-0 text-2xl font-bold tracking-tight hyphens-auto wrap-break-word";
export function PageHeader({
title,
@@ -91,7 +91,7 @@ export function PageHeader({
actions && stackActionsOnPhone && "max-sm:grid-cols-1",
)}
>
<div className="min-w-0">{heading}</div>
{heading}
{actions ? (
<div
className={cn(