Fix mobile logo styling

This commit is contained in:
Kalle 2026-03-07 08:16:12 +02:00
parent 1d50058b34
commit 2230adec6e
2 changed files with 3 additions and 21 deletions

View File

@ -176,17 +176,5 @@
@media screen and (max-width: 599px) {
.mobileLogo {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 40px;
height: 36px;
background-color: var(--color-accent);
border-radius: var(--radius-field);
font-weight: var(--weight-bold);
color: var(--color-text);
text-decoration: none;
flex-shrink: 0;
line-height: 1;
}
}

View File

@ -342,7 +342,9 @@ export function Layout({
transform: `translateY(${navOffset}px)`,
}}
>
<MobileLogo />
<Link to="/" className={clsx(styles.siteLogo, styles.mobileLogo)}>
<SiteLogoContent />
</Link>
{sideNavCollapsed ? (
<div className={styles.headerCollapsedBreadcrumbs}>
<SiteTitle />
@ -415,14 +417,6 @@ function SiteLogoContent() {
);
}
function MobileLogo() {
return (
<Link to="/" className={styles.mobileLogo}>
<SiteLogoContent />
</Link>
);
}
function SideNavCollapseButton({ onToggle }: { onToggle: () => void }) {
return (
<SendouButton