From 1b13e4fa19385d7ddd5822fd6d34630c2924a22f Mon Sep 17 00:00:00 2001 From: chenhang Date: Thu, 11 Jun 2026 18:59:33 +0800 Subject: [PATCH] fix(auth): add inline auto styles to logo Image to silence dimension warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/app/auth/components/auth-email-panel.tsx | 1 + src/app/auth/components/auth-facebook-panel.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/auth/components/auth-email-panel.tsx b/src/app/auth/components/auth-email-panel.tsx index f31548c6..e486d614 100644 --- a/src/app/auth/components/auth-email-panel.tsx +++ b/src/app/auth/components/auth-email-panel.tsx @@ -55,6 +55,7 @@ export function AuthEmailPanel({ width={120} height={120} className={styles.logo} + style={{ width: "auto", height: "auto" }} priority /> diff --git a/src/app/auth/components/auth-facebook-panel.tsx b/src/app/auth/components/auth-facebook-panel.tsx index 01079370..6f3e8e1f 100644 --- a/src/app/auth/components/auth-facebook-panel.tsx +++ b/src/app/auth/components/auth-facebook-panel.tsx @@ -55,6 +55,7 @@ export function AuthFacebookPanel({ onSwitchToEmail }: AuthFacebookPanelProps) { width={120} height={120} className={styles.logo} + style={{ width: "auto", height: "auto" }} priority />