feat: change mui default tabs
This commit is contained in:
@@ -181,20 +181,29 @@ const RobotCreate: React.FC = () => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box sx={{ borderBottom: 1, borderColor: 'divider', mb: 3 }}>
|
<Box sx={{ borderBottom: 1, borderColor: 'divider', mb: 2 }}>
|
||||||
<Tabs value={tabValue} onChange={handleTabChange} aria-label="robot type tabs">
|
<Tabs
|
||||||
<Tab
|
value={tabValue}
|
||||||
label="Extract"
|
onChange={handleTabChange}
|
||||||
id="extract-robot"
|
aria-label="robot type tabs"
|
||||||
aria-controls="extract-robot"
|
sx={{
|
||||||
/>
|
minHeight: 36,
|
||||||
<Tab
|
'& .MuiTab-root': {
|
||||||
label="Markdown"
|
minHeight: 36,
|
||||||
id="markdown-robot"
|
paddingX: 2,
|
||||||
aria-controls="markdown-robot"
|
paddingY: 0.5,
|
||||||
/>
|
minWidth: 0,
|
||||||
</Tabs>
|
},
|
||||||
</Box>
|
'& .MuiTabs-indicator': {
|
||||||
|
height: 2,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Tab label="Extract" id="extract-robot" aria-controls="extract-robot" />
|
||||||
|
<Tab label="Markdown" id="markdown-robot" aria-controls="markdown-robot" />
|
||||||
|
</Tabs>
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
|
||||||
<TabPanel value={tabValue} index={0}>
|
<TabPanel value={tabValue} index={0}>
|
||||||
<Card sx={{ mb: 4, p: 4, textAlign: 'center' }}>
|
<Card sx={{ mb: 4, p: 4, textAlign: 'center' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user