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
|
<Link
|
||||||
href={href}
|
href={href}
|
||||||
className={cn(
|
className={cn(
|
||||||
"group inline-flex shrink-0 items-center",
|
// Slot = header height; overflow clips the zoomed asset padding.
|
||||||
// Fit inside header bar — never scale above the slot (no 200%+ zoom).
|
"group inline-flex min-w-0 items-center overflow-hidden",
|
||||||
compact ? "h-10" : "h-11 sm:h-12",
|
compact ? "h-14" : "h-full",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
aria-label={ariaLabel}
|
aria-label={ariaLabel}
|
||||||
@@ -51,10 +51,10 @@ export function BrandLogo({
|
|||||||
width={1888}
|
width={1888}
|
||||||
height={607}
|
height={607}
|
||||||
priority
|
priority
|
||||||
sizes="(max-width:640px) 200px, 260px"
|
sizes="(max-width:640px) 22rem, 30rem"
|
||||||
className={cn(
|
className={cn(
|
||||||
// Preserve intrinsic aspect ratio; constrain width so nav stays usable.
|
// Zoom past black plate so the mark fills the bar; w-auto keeps aspect.
|
||||||
"h-full w-auto max-w-[13.5rem] object-contain object-right sm:max-w-[17rem]",
|
"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",
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export function SiteHeader({
|
|||||||
subtitle={brandSubtitle}
|
subtitle={brandSubtitle}
|
||||||
onDark={isDark}
|
onDark={isDark}
|
||||||
horizontal
|
horizontal
|
||||||
className="shrink-0"
|
className="h-full shrink-0"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<nav
|
<nav
|
||||||
|
|||||||
Reference in new issue
Block a user