feat: hide workspace switcher when user has only 1 workspace
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -233,8 +233,8 @@ function Sidebar({
|
|||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Workspace tabs — side-by-side segmented control */}
|
{/* Workspace tabs — side-by-side segmented control (hidden when only 1 workspace) */}
|
||||||
<Box
|
{visibleWorkspaces.length > 1 && <Box
|
||||||
sx={{
|
sx={{
|
||||||
borderBottom: `1px solid ${DIVIDER_COLOR}`,
|
borderBottom: `1px solid ${DIVIDER_COLOR}`,
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
@@ -294,7 +294,7 @@ function Sidebar({
|
|||||||
<Box key={ws}>{tabContent}</Box>
|
<Box key={ws}>{tabContent}</Box>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</Box>
|
</Box>}
|
||||||
|
|
||||||
{/* Nav items */}
|
{/* Nav items */}
|
||||||
<Box sx={{ flex: 1, overflowY: 'auto', py: 0.5 }}>
|
<Box sx={{ flex: 1, overflowY: 'auto', py: 0.5 }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user