Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .changeset/chilly-garlics-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

In some instances your application logo (shown at the top of the sign-in/sign-up form of the prebuilt components) might have been distorted in browsers like Firefox. By applying `object-fit: contain` to the image's CSS the logo now fills its bounding box without being distorted.
4 changes: 2 additions & 2 deletions packages/clerk-js/src/ui/elements/ApplicationLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export const ApplicationLogo = (props: ApplicationLogoProps) => {
sx={{
display: loaded ? 'inline-block' : 'none',
height: '100%',
width: 'auto',
width: '100%',
objectFit: 'contain',
}}
/>
);
Expand All @@ -61,7 +62,6 @@ export const ApplicationLogo = (props: ApplicationLogoProps) => {
sx={[
theme => ({
height: getContainerHeightForImageRatio(imageRef, theme.sizes.$4),
objectFit: 'cover',
justifyContent: 'center',
}),
props.sx,
Expand Down