Skip to content

Commit a37995a

Browse files
committed
style(webapp): line the chart tab bar up with the plain card title
Doubles the tab bar's left padding to pl-4, which is also what the non-tabbed `Card.Header` uses - so a tabbed chart title and a plain one start at the same place.
1 parent 8c3a8c9 commit a37995a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/webapp/app/components/primitives/charts/ChartCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function ChartCard({
8989
<div ref={containerRef} className="group h-full min-h-0 overflow-hidden">
9090
<Card className={cn("h-full overflow-hidden px-0 pb-2", tabbed ? "pt-0" : "pt-3", className)}>
9191
{tabbed ? (
92-
<div className={cn(TITLE_BAR_CHROME, "items-stretch justify-between gap-x-0 px-2")}>
92+
<div className={cn(TITLE_BAR_CHROME, "items-stretch justify-between gap-x-0 pl-4 pr-2")}>
9393
<div className="flex items-stretch gap-x-4">{title}</div>
9494
{maximizable && <div className="flex items-center">{maximizeButton}</div>}
9595
</div>

apps/webapp/app/routes/storybook.tabs/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function TitleTabButtons({ layoutId, size }: { layoutId: string; size?: "base" |
206206
const [active, setActive] = useState("first");
207207

208208
return (
209-
<TabContainer variant="title" className="justify-start gap-x-4 px-2">
209+
<TabContainer variant="title" className="justify-start gap-x-4 pl-4 pr-2">
210210
{["first", "second"].map((value) => (
211211
<TabButton
212212
key={value}

0 commit comments

Comments
 (0)