Skip to content

Commit

Permalink
fix(clerk-js): UP/OP footer padding on small screens (#4191)
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper authored Sep 19, 2024
1 parent 2e5c550 commit ef824dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-walls-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/clerk-js": patch
---

Fix UserProfile and OrganizationProfile wrong padding on footer for small screens when Development notice is enabled
5 changes: 3 additions & 2 deletions packages/clerk-js/src/ui/elements/Card/CardFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const CardFooter = React.forwardRef<HTMLDivElement, CardFooterProps>((pro
});

const profileCardFooterStyles = (t: InternalTheme) => ({
padding: `${t.space.$4} ${t.space.$6} ${t.space.$2}`,
padding: `${t.space.$4} ${t.space.$8}`,
});

return (
Expand All @@ -59,7 +59,7 @@ export const CardFooter = React.forwardRef<HTMLDivElement, CardFooterProps>((pro
marginTop: 0,
},
}),
isProfileFooter ? profileCardFooterStyles : footerStyles,
!isProfileFooter && footerStyles,
sx,
]}
{...rest}
Expand All @@ -72,6 +72,7 @@ export const CardFooter = React.forwardRef<HTMLDivElement, CardFooterProps>((pro
devModeNoticeSx={t => ({
padding: t.space.$none,
})}
outerSx={isProfileFooter ? profileCardFooterStyles : undefined}
withDevOverlay
/>
</Flex>
Expand Down

0 comments on commit ef824dc

Please sign in to comment.