+
+
+
{title}
{description && (
-
+
{description}
)}
- {/* A rule, not a box. The app divides with hairlines and whitespace —
- a bordered, tinted panel around rows that already separate
- themselves with hairlines was dividing the same content twice. The
- top rule is what tells a section where it starts, and it has to live
- here rather than on the first row because sections also hold custom
- content (theme tiles, previews) that draws no rule of its own. */}
-
- {children}
-
+ {children}
);
}
// Page heading shared across settings sub-pages. The global Save Draft / Apply
// toolbar (which also shows where this module persists to) lives above this, so
-// each page just owns its title row.
+// each page just owns its title row. Settings is a compact preferences card,
+// not a feature page: the heading stays at card scale (20px) instead of the
+// 30/32px feature-page title, which is scoped to `.dt-page-title`.
export function SettingsPageHeader({
title,
description,
@@ -216,6 +212,32 @@ export function SettingsPageHeader({
actions?: React.ReactNode;
}) {
return (
-
+
+
+
+ {title}
+
+ {description && (
+
+ {description}
+
+ )}
+
+ {actions && (
+
+ {actions}
+
+ )}
+
);
}
{title}
{description && ( -+
{description}
)}+ {title} +
+ {description && ( ++ {description} +
+ )} +