Restore large horizontal logo in header slot without changing header height.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2f80b96a95
commit
6745fcdc3f
2 files changed
+7
-7
No files matched your search
@@ -38,9 +38,9 @@ export function BrandLogo({
|
||||
<Link
|
||||
href={href}
|
||||
className={cn(
|
||||
"group inline-flex shrink-0 items-center",
|
||||
// Fit inside header bar — never scale above the slot (no 200%+ zoom).
|
||||
compact ? "h-10" : "h-11 sm:h-12",
|
||||
// Slot = header height; overflow clips the zoomed asset padding.
|
||||
"group inline-flex min-w-0 items-center overflow-hidden",
|
||||
compact ? "h-14" : "h-full",
|
||||
className,
|
||||
)}
|
||||
aria-label={ariaLabel}
|
||||
@@ -51,10 +51,10 @@ export function BrandLogo({
|
||||
width={1888}
|
||||
height={607}
|
||||
priority
|
||||
sizes="(max-width:640px) 200px, 260px"
|
||||
sizes="(max-width:640px) 22rem, 30rem"
|
||||
className={cn(
|
||||
// Preserve intrinsic aspect ratio; constrain width so nav stays usable.
|
||||
"h-full w-auto max-w-[13.5rem] object-contain object-right sm:max-w-[17rem]",
|
||||
// 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",
|
||||
// Asset is white-on-black; blend so the plate disappears into the header.
|
||||
onDark ? "mix-blend-screen" : "invert mix-blend-multiply",
|
||||
)}
|
||||
|
||||
@@ -127,7 +127,7 @@ export function SiteHeader({
|
||||
subtitle={brandSubtitle}
|
||||
onDark={isDark}
|
||||
horizontal
|
||||
className="shrink-0"
|
||||
className="h-full shrink-0"
|
||||
/>
|
||||
|
||||
<nav
|
||||
|
||||
Reference in new issue
Block a user