Skip to content

Commit e2523cb

Browse files
committed
fix: make header more responsive
1 parent 2b77784 commit e2523cb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

site/src/components/SettingsHeader/SettingsHeader.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@ export const SettingsHeader: FC<SettingsHeaderProps> = ({
1616
className,
1717
}) => {
1818
return (
19-
<hgroup className="flex flex-row justify-between align-baseline">
19+
<hgroup className="flex flex-col justify-between items-start gap-2 pb-6 sm:flex-row">
2020
{/*
2121
* The text-sm class is only meant to adjust the font size of
2222
* SettingsDescription, but we need to apply it here. That way,
2323
* text-sm combines with the max-w-prose class and makes sure
2424
* we have a predictable max width for the header + description by
2525
* default.
2626
*/}
27-
<div className={cn("text-sm max-w-prose pb-6", className)}>
28-
{children}
29-
</div>
27+
<div className={cn("text-sm max-w-prose", className)}>{children}</div>
3028
{actions}
3129
</hgroup>
3230
);
@@ -83,7 +81,7 @@ export const SettingsHeaderTitle: FC<SettingsHeaderTitleProps> = ({
8381
// in invalid markup
8482
const Title = level;
8583
return (
86-
<div className="flex flex-row gap-2 align-middle">
84+
<div className="flex flex-row gap-2 items-middle">
8785
<Title className={cn(titleVariants({ hierarchy }), className)}>
8886
{children}
8987
</Title>

0 commit comments

Comments
 (0)