Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: constrain max width
  • Loading branch information
Parkreiner committed Mar 11, 2025
commit 9872c5d2b07402738cce01e20d19034a161b2c68
10 changes: 8 additions & 2 deletions site/src/components/SettingsHeader/SettingsHeader.tsx
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a storybook for it covering the new variants?

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export const SettingsHeader: FC<HeaderProps> = ({
const Header = titleHeaderLevel;
return (
<div className="flex flex-row justify-between align-baseline">
<div className="max-w-prose pb-6">
{/*
* The text-sm class only adjusts the size of the description, but
* we need to apply it here so that it combines with the max-w-prose
* class and makes sure we have a predictable max width for the
* entire section of text.
*/}
<div className="text-sm max-w-prose pb-6">
<div className="flex flex-row gap-2 align-middle">
<Header
className={twMerge(
Expand All @@ -40,7 +46,7 @@ export const SettingsHeader: FC<HeaderProps> = ({
</div>

{description && (
<p className="m-0 text-sm text-content-secondary leading-relaxed">
<p className="m-0 text-content-secondary leading-relaxed">
{description}
</p>
)}
Expand Down
Loading