fix: add width/height auto styling to maintain aspect ratio in image

This commit is contained in:
ngc2207 2025-01-29 16:54:59 +08:00
parent abfadf3b0d
commit 67565b1b18

View File

@ -10,7 +10,13 @@ const AuthLayout = ({ children }: AuthLayoutProps) => {
<main className="min-h-screen">
<div className="mx-auto max-w-screen-2xl p-4">
<nav className="flex items-center justify-between">
<Image src="/logo.svg" alt="logo" width={100} height={50} />
<Image
src="/logo.svg"
alt="logo"
width={100}
height={50}
style={{ width: "auto", height: "auto" }}
/>
<div className="flex items-center gap-2">
<Button variant="secondary">Sign Up</Button>
</div>