Skip to content

Build your personal knowledge base with Trilium Notes

fix(website): mobile menu causing issues with scroll anchoring

Elian Dorand23550d3ef59
diff --git a/apps/website/src/components/Header.css b/apps/website/src/components/Header.css
index 05b3617475..b7a4026193 100644
--- a/apps/website/src/components/Header.css
+++ b/apps/website/src/components/Header.css
@@ -56,6 +56,23 @@ header nav a.active {
}
@media (max-width: 719px) {
+ :root {
+ --header-height: 35px;
+ }
+
+ header {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ min-height: var(--header-height);
+ display: flex;
+ }
+
+ header + main {
+ margin-top: var(--header-height);
+ }
+
header .content-wrapper {
display: block;
}