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:
Benjamin Sutter
2026-05-19 20:41:40 +02:00
parent 86051c6f01
commit b6f65f4763
+3 -3
View File
@@ -233,8 +233,8 @@ function Sidebar({
)}
</Box>
{/* Workspace tabs — side-by-side segmented control */}
<Box
{/* Workspace tabs — side-by-side segmented control (hidden when only 1 workspace) */}
{visibleWorkspaces.length > 1 && <Box
sx={{
borderBottom: `1px solid ${DIVIDER_COLOR}`,
display: 'grid',
@@ -294,7 +294,7 @@ function Sidebar({
<Box key={ws}>{tabContent}</Box>
)
})}
</Box>
</Box>}
{/* Nav items */}
<Box sx={{ flex: 1, overflowY: 'auto', py: 0.5 }}>