We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0112f9e commit 18ff9f3Copy full SHA for 18ff9f3
src/extension/options-page/DashboardComponents/AbstractTab.tsx
@@ -28,12 +28,14 @@ export interface AbstractTabProps {
28
export default function AbstractTab({ tabs, state, height = 200 }: AbstractTabProps) {
29
const classes = useStyles()
30
const [value, setValue] = state
31
+ const tabIndicatorStyle = tabs.length > 0 ? { width: 100 / tabs.length + '%' } : {}
32
33
return (
34
<>
35
<Paper square elevation={0}>
36
<Tabs
37
value={value}
38
+ TabIndicatorProps={{ style: tabIndicatorStyle }}
39
variant="fullWidth"
40
indicatorColor="primary"
41
textColor="primary"
0 commit comments