fix: drop down menu should be of 160px size (#1459)

* fix: drop down menu should be of 160px size

* fix: typing

* fix: remove debug
This commit is contained in:
Jérémy M
2023-09-05 17:38:07 +02:00
committed by GitHub
parent b3887c6bcc
commit 21e3f6ecb2
4 changed files with 21 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import styled from '@emotion/styled';
export const StyledDropdownMenu = styled.div<{
disableBlur?: boolean;
width?: number;
width?: `${string}px` | 'auto' | number;
}>`
backdrop-filter: ${({ disableBlur }) =>
disableBlur ? 'none' : 'blur(20px)'};
@ -16,9 +16,8 @@ export const StyledDropdownMenu = styled.div<{
flex-direction: column;
min-width: 160px;
overflow: hidden;
width: ${({ width }) => (width ? `${width}px` : 'auto')};
width: ${({ width }) =>
width ? `${typeof width === 'number' ? `${width}px` : width}` : '160px'};
`;