This commit is contained in:
sbb45
2026-06-17 21:41:07 +05:00
parent abb9190b35
commit c4b8b05b32
10 changed files with 42 additions and 74 deletions
+4 -2
View File
@@ -13,7 +13,7 @@ export const Overlay = styled.div`
align-items: center;
justify-content: center;
`;
export const ModalWrapper = styled.div<{ $animateIn: boolean }>`
export const ModalWrapper = styled.div<{ $animateIn: boolean; $compact?: boolean }>`
display: flex;
justify-content: center;
align-items: center;
@@ -23,7 +23,9 @@ export const ModalWrapper = styled.div<{ $animateIn: boolean }>`
padding: 32px;
border-radius: 20px;
width: 70vw;
height: 94vh;
height: ${({ $compact }) => $compact ? 'auto' : '94vh'};
max-height: ${({ $compact }) => $compact ? '80vh' : 'none'};
overflow-y: ${({ $compact }) => $compact ? 'auto' : 'visible'};
position: relative;
opacity: ${({ $animateIn }) => ($animateIn ? 1 : 0)};
transform: ${({ $animateIn }) =>