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 <Link
href={href} href={href}
className={cn( className={cn(
// Slot = header height; overflow clips the zoomed asset padding. "group inline-flex min-w-0 items-center",
"group inline-flex min-w-0 items-center overflow-hidden",
compact ? "h-14" : "h-full", compact ? "h-14" : "h-full",
className, className,
)} )}
@@ -53,8 +52,7 @@ export function BrandLogo({
priority priority
sizes="(max-width:640px) 22rem, 30rem" sizes="(max-width:640px) 22rem, 30rem"
className={cn( className={cn(
// Zoom past black plate so the mark fills the bar; w-auto keeps aspect. "h-full w-auto object-contain object-right",
"h-[200%] w-auto max-w-none object-contain object-right",
// Asset is white-on-black; blend so the plate disappears into the header. // Asset is white-on-black; blend so the plate disappears into the header.
onDark ? "mix-blend-screen" : "invert mix-blend-multiply", onDark ? "mix-blend-screen" : "invert mix-blend-multiply",
)} )}