Skip to content

Commit

Permalink
Fix flyout (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok authored Nov 13, 2023
1 parent 6ef0617 commit 751055d
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

1 comment on commit 751055d

@vercel
Copy link

@vercel vercel bot commented on 751055d Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui-clickhouse.vercel.app
click-ui-git-main-clickhouse.vercel.app
click-ui.vercel.app

Please sign in to comment.