Skip to content

fix: left-align E2B logo in Ory auth flows for Safari#453

Merged
ben-fornefeld merged 2 commits into
mainfrom
devin/1782247042-fix-logo-alignment
Jun 23, 2026
Merged

fix: left-align E2B logo in Ory auth flows for Safari#453
ben-fornefeld merged 2 commits into
mainfrom
devin/1782247042-fix-logo-alignment

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

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

Add self-start to the E2BLogoSmall SVG in OryCardHeader to ensure
the logo is explicitly left-aligned in Safari, where w-fit alone
does not prevent centering inside a flex-col container.

Co-Authored-By: ben@e2b.dev <ben@e2b.dev>
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 23, 2026 9:12pm
web-tango Error Error Jun 23, 2026 9:12pm

Request Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@cla-bot cla-bot Bot added the cla-signed label Jun 23, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, straightforward Safari CSS fix.

Extended reasoning...

Overview

This PR adds a single self-start Tailwind utility class to the E2BLogoSmall element in OryCardHeader to ensure it left-aligns properly in Safari, where flex-col's default align-items: stretch was centering the SVG despite w-fit.

Security risks

None. This is a pure CSS/styling change with no logic, data flow, auth, or permission implications.

Level of scrutiny

Minimal. This is a one-line cosmetic fix in auth flow UI styling, not the auth logic itself. The rationale is well-explained in the PR description, matches the approach Ory Elements uses in its own DefaultCardLogo, and the change is mechanically obvious.

Other factors

The bug hunting system found no issues. The change is self-contained to a single visual element and cannot affect functionality. Preview deployment is available for visual verification.

Safari doesn't correctly resolve width: fit-content on SVGs in
flex-col contexts, causing the logo to appear centered. Removing
w-fit lets the base w-auto (from E2BLogoSmall) take effect, which
correctly computes width from the SVG's aspect ratio cross-browser.

Co-Authored-By: ben@e2b.dev <ben@e2b.dev>
@ben-fornefeld ben-fornefeld merged commit a72b302 into main Jun 23, 2026
13 checks passed
@ben-fornefeld ben-fornefeld deleted the devin/1782247042-fix-logo-alignment branch June 23, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant