feat: change mui default tabs

This commit is contained in:
amhsirak
2025-11-20 16:24:19 +05:30
parent febc6c119e
commit dbb6c87289

View File

@@ -181,20 +181,29 @@ const RobotCreate: React.FC = () => {
</Typography>
</Box>
<Box sx={{ borderBottom: 1, borderColor: 'divider', mb: 3 }}>
<Tabs value={tabValue} onChange={handleTabChange} aria-label="robot type tabs">
<Tab
label="Extract"
id="extract-robot"
aria-controls="extract-robot"
/>
<Tab
label="Markdown"
id="markdown-robot"
aria-controls="markdown-robot"
/>
</Tabs>
</Box>
<Box sx={{ borderBottom: 1, borderColor: 'divider', mb: 2 }}>
<Tabs
value={tabValue}
onChange={handleTabChange}
aria-label="robot type tabs"
sx={{
minHeight: 36,
'& .MuiTab-root': {
minHeight: 36,
paddingX: 2,
paddingY: 0.5,
minWidth: 0,
},
'& .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}>
<Card sx={{ mb: 4, p: 4, textAlign: 'center' }}>