Skip to content

Commit 863d36e

Browse files
committed
FE: Reduce sidebar items height
1 parent 21590d8 commit 863d36e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/src/components/Nav/Menu/styled.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
22
import { ServerStatus } from 'generated-sources';
33

44
export const ColorPickerWrapper = styled.div`
5+
position: absolute;
56
display: flex;
67
visibility: hidden;
78
`;
@@ -13,13 +14,14 @@ export const MenuItem = styled('li').attrs({ role: 'menuitem' })<{
1314
({ theme, $variant, $isActive }) => css`
1415
font-size: 14px;
1516
font-weight: ${theme.menu[$isActive ? 'primary' : $variant].fontWeight};
16-
min-height: 32px;
17+
min-height: 28px;
1718
display: flex;
1819
align-items: center;
1920
justify-content: space-between;
21+
line-height: 17px;
2022
user-select: none;
2123
width: 100%;
22-
padding: 6px 8px;
24+
padding: 4px 8px;
2325
cursor: pointer;
2426
text-decoration: none;
2527
border-radius: 8px;
@@ -35,6 +37,7 @@ export const MenuItem = styled('li').attrs({ role: 'menuitem' })<{
3537
color: ${theme.menu[$variant].color.hover};
3638
3739
${ColorPickerWrapper} {
40+
position: relative;
3841
visibility: visible;
3942
}
4043
}

0 commit comments

Comments
 (0)