add minHeight to muiTab styles

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-04-02 19:00:59 -04:00
1 parent b1b1684da1
commit 4fd85b4a2c
2 files changed
+16 -16

No files matched your search

@@ -31,23 +31,22 @@ const Tabs = ({
borderBottom: `1px solid ${theme.palette.primary.lowContrast}`, borderBottom: `1px solid ${theme.palette.primary.lowContrast}`,
"& .MuiTabs-root": { height: "fit-content", minHeight: "0" }, "& .MuiTabs-root": { height: "fit-content", minHeight: "0" },
}} }}
>
<TabList
onChange={(_, tab) => {
setTab(TAB_LIST.indexOf(tab));
}}
> >
{TAB_LIST.map((tab, idx) => { <TabList
return ( onChange={(_, tab) => {
<Tab setTab(TAB_LIST.indexOf(tab));
key={tab} }}
label={TAB_LIST[idx]} >
value={TAB_LIST[idx]} {TAB_LIST.map((tab, idx) => {
/> return (
); <Tab
})} key={tab}
</TabList> label={TAB_LIST[idx]}
value={TAB_LIST[idx]}
/>
);
})}
</TabList>
</Box> </Box>
{tab === 0 ? ( {tab === 0 ? (
<Settings <Settings
+1
View File
@@ -361,6 +361,7 @@ const baseTheme = (palette) => ({
color: theme.palette.tertiary.contrastText, color: theme.palette.tertiary.contrastText,
backgroundColor: theme.palette.primary.main, backgroundColor: theme.palette.primary.main,
height: '34px', height: '34px',
minHeight: '34px',
borderRadius: 0, borderRadius: 0,
textTransform: "none", textTransform: "none",
minWidth: "fit-content", minWidth: "fit-content",