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:
@@ -55,6 +55,7 @@ export function AuthEmailPanel({
|
|||||||
width={120}
|
width={120}
|
||||||
height={120}
|
height={120}
|
||||||
className={styles.logo}
|
className={styles.logo}
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ export function AuthFacebookPanel({ onSwitchToEmail }: AuthFacebookPanelProps) {
|
|||||||
width={120}
|
width={120}
|
||||||
height={120}
|
height={120}
|
||||||
className={styles.logo}
|
className={styles.logo}
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
<div className={styles.spacer} />
|
<div className={styles.spacer} />
|
||||||
|
|||||||
Reference in New Issue
Block a user