Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions frontend/src/components/Nav/Menu/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
import { ServerStatus } from 'generated-sources';

export const ColorPickerWrapper = styled.div`
position: absolute;
display: flex;
visibility: hidden;
`;
Expand All @@ -13,13 +14,14 @@ export const MenuItem = styled('li').attrs({ role: 'menuitem' })<{
({ theme, $variant, $isActive }) => css`
font-size: 14px;
font-weight: ${theme.menu[$isActive ? 'primary' : $variant].fontWeight};
min-height: 32px;
min-height: 28px;
display: flex;
align-items: center;
justify-content: space-between;
line-height: 17px;
user-select: none;
width: 100%;
padding: 6px 8px;
padding: 4px 8px;
cursor: pointer;
text-decoration: none;
border-radius: 8px;
Expand All @@ -35,6 +37,8 @@ export const MenuItem = styled('li').attrs({ role: 'menuitem' })<{
color: ${theme.menu[$variant].color.hover};

${ColorPickerWrapper} {
position: absolute;
right: 36px;
visibility: visible;
}
}
Expand Down
Loading