Skip to content

Commit

Permalink
Make tabs scrollable if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Jul 29, 2024
1 parent 514d7aa commit 37d50a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui/src/app/components/TabWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ const TabWidget: FunctionComponent<TabWidgetProps> = ({ labels, children }) => {

return (
<Box display="flex" height="100%" width="100%" flexDirection="column">
<Tabs value={index} onChange={handleChange}>
<Tabs
value={index}
onChange={handleChange}
variant="scrollable"
scrollButtons="auto"
>
{labels.map((label, i) => (
<Tab key={i} label={label} />
))}
Expand Down

0 comments on commit 37d50a6

Please sign in to comment.