feat: tab border radius
This commit is contained in:
@@ -46,7 +46,12 @@ export const BrowserTabs = (
|
|||||||
<Tab
|
<Tab
|
||||||
key={`tab-${index}`}
|
key={`tab-${index}`}
|
||||||
id={`tab-${index}`}
|
id={`tab-${index}`}
|
||||||
sx={{ background: 'white' }}
|
sx={{
|
||||||
|
background: 'white',
|
||||||
|
borderTopLeftRadius: index === 0 ? '20px' : 0, // For the first tab
|
||||||
|
borderTopRightRadius: index === tabs.length - 1 ? '20px' : 0, // For the last tab
|
||||||
|
transition: 'border-radius 0.2s ease',
|
||||||
|
}}
|
||||||
icon={<CloseButton closeTab={() => {
|
icon={<CloseButton closeTab={() => {
|
||||||
tabWasClosed = true;
|
tabWasClosed = true;
|
||||||
handleCloseTab(index);
|
handleCloseTab(index);
|
||||||
@@ -65,7 +70,7 @@ export const BrowserTabs = (
|
|||||||
})}
|
})}
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Box>
|
</Box>
|
||||||
<AddButton handleClick={handleAddNewTab} />
|
<AddButton handleClick={handleAddNewTab} style={{ background: 'white'}} />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user