Skip to content
Merged
Changes from 1 commit
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
25 changes: 13 additions & 12 deletions packages/clerk-js/src/ui/components/Plans/PlanDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ export const PlanDetails = (props: __internal_PlanDetailsProps) => {

const BodyFiller = ({ children }: { children: React.ReactNode }) => {
return (
<Drawer.Body>
<Flex
align={'center'}
justify={'center'}
sx={t => ({
height: '100%',
padding: t.space.$4,
fontSize: t.fontSizes.$md,
})}
>
{children}
</Flex>
<Drawer.Body
sx={t => ({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
flex: 1,
overflowY: 'auto',
Comment on lines +43 to +48
Copy link
Member

Choose a reason for hiding this comment

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

body already handles a majority of these.

display: 'flex',
flexDirection: 'column',
flex: 1,
overflowY: 'auto',
overflowX: 'hidden',

Copy link
Member Author

Choose a reason for hiding this comment

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

Those are not inherited tho. If i removed the duplicate ones then this is the UI I end up with.
image

padding: t.space.$4,
gap: t.space.$4,
})}
>
{children}
</Drawer.Body>
);
};
Expand Down
Loading