Skip to content

Commit

Permalink
Fix flyout
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok committed Nov 13, 2023
1 parent e8a048a commit 1f7262e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Flyout/Flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export interface DialogContentProps extends RadixDialogContentProps {
}

const animationWidth = keyframes({
"0%": { width: 0 },
"100%": { width: "var(--flyout-width, 100%)" },
"0%": { maxWidth: 0, minWidth: 0 },
"100%": { maxWidth: "fit-content", minWidth: "var(--flyout-width, 100%)" },
});

const FlyoutContent = styled(DialogContent)<{
Expand All @@ -69,6 +69,7 @@ const FlyoutContent = styled(DialogContent)<{
top: 0;
right: 0;
bottom: 0;
width: 100%;
--flyout-width: ${({ theme, $size = "default" }) =>
theme.click.flyout.size[$size].width};
animation: ${animationWidth} 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
Expand Down

0 comments on commit 1f7262e

Please sign in to comment.