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

View File

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