Size horizontal logo to full header height without zoom.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-16 17:22:48 +03:30
1 parent 6745fcdc3f
commit 2709181557
1 file changed
+2 -4
+2 -4
View File
@@ -38,8 +38,7 @@ export function BrandLogo({
<Link
href={href}
className={cn(
// Slot = header height; overflow clips the zoomed asset padding.
"group inline-flex min-w-0 items-center overflow-hidden",
"group inline-flex min-w-0 items-center",
compact ? "h-14" : "h-full",
className,
)}
@@ -53,8 +52,7 @@ export function BrandLogo({
priority
sizes="(max-width:640px) 22rem, 30rem"
className={cn(
// Zoom past black plate so the mark fills the bar; w-auto keeps aspect.
"h-[200%] w-auto max-w-none object-contain object-right",
"h-full w-auto object-contain object-right",
// Asset is white-on-black; blend so the plate disappears into the header.
onDark ? "mix-blend-screen" : "invert mix-blend-multiply",
)}