Skip to content

Commit

Permalink
styling tweaks to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
gtibrett committed Apr 22, 2024
1 parent 7f90c1c commit 92fef1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export default function Tabs(props: TabsProps) {

return (
<TabContext value={active}>
<Grid container spacing={1} sx={{borderBottom: 1, borderColor: 'divider'}}>
<Grid container spacing={1} sx={{ml: 0, width: '100%', borderBottom: 1, borderColor: 'divider'}} alignItems="center">
<Grid item xs>
<TabList onChange={handleTabChange} textColor={color} indicatorColor={color}>
{tabs.map(t => <MuiTab key={t.id} label={t.label} value={t.id}/>)}
</TabList>
</Grid>
{activeTab?.actions && <Grid item>{activeTab.actions}</Grid>}
{activeTab?.actions && <Grid item sx={{pr: 1}}>{activeTab.actions}</Grid>}
</Grid>
{panel}
</TabContext>
Expand Down

0 comments on commit 92fef1c

Please sign in to comment.