mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #~: Reformat tab styles to get better UX (#2120)
This commit is contained in:
parent
a54442bf05
commit
0c298723d1
@ -89,6 +89,7 @@ const Tabs = ({
|
||||
<MTabs
|
||||
value={tabSelected}
|
||||
variant="scrollable"
|
||||
allowScrollButtonsMobile
|
||||
scrollButtons="auto"
|
||||
onChange={(_, tab) => setTab(tab)}
|
||||
sx={{
|
||||
@ -104,6 +105,7 @@ const Tabs = ({
|
||||
<MTab
|
||||
key={`tab-${id}`}
|
||||
id={`tab-${id}`}
|
||||
iconPosition="start"
|
||||
icon={error ? <WarningIcon /> : Icon && <Icon />}
|
||||
value={value ?? idx}
|
||||
label={label ?? id}
|
||||
|
@ -423,6 +423,11 @@ const createAppTheme = (appTheme, mode = SCHEMES.DARK) => {
|
||||
backgroundColor: background.paper,
|
||||
borderRadius: `8px 8px 0 0`,
|
||||
border: `thin solid ${secondary.main}`,
|
||||
paddingInline: '1rem',
|
||||
},
|
||||
flexContainer: {
|
||||
height: '100%',
|
||||
paddingBlock: '0.5em',
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -432,8 +437,18 @@ const createAppTheme = (appTheme, mode = SCHEMES.DARK) => {
|
||||
color: 'text.secondary',
|
||||
textTransform: 'capitalize',
|
||||
fontSize: '1rem',
|
||||
padding: '0 1rem',
|
||||
minHeight: '100%',
|
||||
border: 0,
|
||||
borderRadius: 6,
|
||||
'&:hover': {
|
||||
background: defaultTheme.palette.action.selected,
|
||||
transition: 'background .12s ease-in-out',
|
||||
},
|
||||
'&.Mui-selected': {
|
||||
color: isDarkMode ? secondary.main : 'text.primary',
|
||||
color: isDarkMode
|
||||
? secondary.main
|
||||
: defaultTheme.palette.text.primary,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user