fix navbar offsets

This commit is contained in:
2022-12-30 13:45:45 +01:00
parent db05967c05
commit def79c162c
2 changed files with 12 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
display: none; display: none;
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 860px) {
.nav { .nav {
height: 3rem; height: 3rem;
} }
@@ -101,6 +101,12 @@
.mobile { .mobile {
display: inherit; display: inherit;
} }
.menumobile {
padding: 0 1rem;
}
.logoutmobile {
padding: 0 1rem;
}
} }
/* FOR TESTING MOBILE NAV WITHOUT DEVTOOLS */ /* FOR TESTING MOBILE NAV WITHOUT DEVTOOLS */

View File

@@ -27,7 +27,10 @@ const Navigation = () => {
</Link> </Link>
); );
})} })}
<div tabIndex={0} className={`${styles.dropdown} ${styles.mobile}`}> <div
tabIndex={0}
className={`${styles.dropdown} ${styles.mobile} ${styles.menumobile}`}
>
<Icon icon="Menu" /> <Icon icon="Menu" />
{/* TUTAJ WSTAWIĆ IKONKĘ PÓŹNIEJ */} {/* TUTAJ WSTAWIĆ IKONKĘ PÓŹNIEJ */}
<div className={styles.innerdropdown}> <div className={styles.innerdropdown}>
@@ -68,7 +71,7 @@ const Navigation = () => {
{!isLoading && user && ( {!isLoading && user && (
<Link <Link
href="/api/auth/logout" href="/api/auth/logout"
className={`${styles.link} ${styles.partprofile}`} className={`${styles.link} ${styles.partprofile} ${styles.logoutmobile}`}
> >
<Icon icon="LogOut" /> <Icon icon="LogOut" />
</Link> </Link>