diff options
Diffstat (limited to 'packages/renderer/src/components/sidebar/Sidebar.tsx')
-rw-r--r-- | packages/renderer/src/components/sidebar/Sidebar.tsx | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/packages/renderer/src/components/sidebar/Sidebar.tsx b/packages/renderer/src/components/sidebar/Sidebar.tsx index 80826ca..4f27d68 100644 --- a/packages/renderer/src/components/sidebar/Sidebar.tsx +++ b/packages/renderer/src/components/sidebar/Sidebar.tsx | |||
@@ -19,7 +19,6 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | import Box from '@mui/material/Box'; | 21 | import Box from '@mui/material/Box'; |
22 | import { alpha } from '@mui/material/styles'; | ||
23 | import React from 'react'; | 22 | import React from 'react'; |
24 | 23 | ||
25 | import ServiceSwitcher from './ServiceSwitcher'; | 24 | import ServiceSwitcher from './ServiceSwitcher'; |
@@ -36,21 +35,29 @@ export default function Sidebar(): JSX.Element { | |||
36 | flexDirection: 'column', | 35 | flexDirection: 'column', |
37 | alignItems: 'center', | 36 | alignItems: 'center', |
38 | paddingY: 1, | 37 | paddingY: 1, |
38 | paddingInlineStart: '1px', | ||
39 | gap: 1, | 39 | gap: 1, |
40 | background: alpha(theme.palette.text.primary, 0.09), | 40 | backgroundColor: |
41 | theme.palette.mode === 'dark' | ||
42 | ? 'rgba(255, 255, 255, 0.09)' | ||
43 | : 'rgba(0, 0, 0, 0.06)', | ||
41 | backgroundClip: 'padding-box', | 44 | backgroundClip: 'padding-box', |
42 | borderInlineEnd: `1px solid ${theme.palette.divider}`, | 45 | borderInlineEnd: `1px solid ${theme.palette.divider}`, |
43 | minWidth: 69, | 46 | minWidth: `calc(${theme.spacing(4)} + 36px)`, |
44 | })} | 47 | })} |
45 | > | 48 | > |
46 | <ToggleLocationBarButton /> | 49 | <ToggleLocationBarButton /> |
47 | <ServiceSwitcher /> | ||
48 | <Box | 50 | <Box |
49 | sx={{ | 51 | sx={{ |
50 | flex: 1, | 52 | flex: 1, |
51 | WebkitAppRegion: 'drag', | 53 | display: 'flex', |
54 | flexDirection: 'column', | ||
55 | justifyContent: 'flex-start', | ||
56 | marginInlineStart: '-1px', | ||
52 | }} | 57 | }} |
53 | /> | 58 | > |
59 | <ServiceSwitcher /> | ||
60 | </Box> | ||
54 | <ToggleDarkModeButton /> | 61 | <ToggleDarkModeButton /> |
55 | </Box> | 62 | </Box> |
56 | ); | 63 | ); |