fix(auth): add inline auto styles to logo Image to silence dimension warning

Next.js Image scans only inline style for 'auto' to determine whether
sizing is fully delegated to CSS. The .logo class already sets
height: var(--auth-logo-height) and width: auto, but the inline auto
hint is required to suppress the width/height-modified warning.

Applies to both auth-facebook-panel and auth-email-panel where the same
login logo is rendered.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-11 18:59:33 +08:00
parent bdc607c6c5
commit 1b13e4fa19
2 changed files with 2 additions and 0 deletions
@@ -55,6 +55,7 @@ export function AuthEmailPanel({
width={120}
height={120}
className={styles.logo}
style={{ width: "auto", height: "auto" }}
priority
/>
</>
@@ -55,6 +55,7 @@ export function AuthFacebookPanel({ onSwitchToEmail }: AuthFacebookPanelProps) {
width={120}
height={120}
className={styles.logo}
style={{ width: "auto", height: "auto" }}
priority
/>
<div className={styles.spacer} />