Skip to content

Commit a72b302

Browse files
fix: left-align E2B logo in Ory auth flows for Safari (#453)
## Summary The `E2BLogoSmall` SVG in `OryCardHeader` appears centered in Safari because `width: fit-content` (`w-fit`) doesn't correctly resolve on SVGs in flex-col contexts — Safari computes a wider-than-expected element width, pushing the logo toward center. Fix: remove `w-fit` so the base `w-auto` from `E2BLogoSmall` takes effect (correctly derives width from height + viewBox aspect ratio cross-browser), and keep `self-start` to explicitly left-align the flex child. Affects all four Ory auth flows (login, registration, recovery, verification) since they share `OryCardHeader`. Link to Devin session: https://app.devin.ai/sessions/c5e1ce36f7b443d891048d75ee873a88 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: ben@e2b.dev <ben@e2b.dev>
1 parent eec7c7b commit a72b302

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/login/components/custom-card-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function OryCardHeader() {
3939

4040
return (
4141
<div className="mb-6 flex flex-col gap-8">
42-
<E2BLogoSmall className="text-fg h-[18px] w-fit" />
42+
<E2BLogoSmall className="text-fg h-[18px] self-start" />
4343
<div className="flex flex-col gap-1">
4444
<h1 className="prose-headline-small">{title}</h1>
4545
{description && <p className="text-fg-secondary">{description}</p>}

0 commit comments

Comments
 (0)