From 00a8a2b0a8a112c273b714a611abd743353c0041 Mon Sep 17 00:00:00 2001 From: Gerald Date: Wed, 18 Sep 2024 13:20:37 +0200 Subject: [PATCH] fix scrolling on navbar (sidebar) --- css/sidebar.css | 4 +++- obsidian.js | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/css/sidebar.css b/css/sidebar.css index 0dca478..42c70f8 100644 --- a/css/sidebar.css +++ b/css/sidebar.css @@ -1,10 +1,12 @@ #sidebar { width: 250px; height: 100vh; - padding-top: 50px; padding-left: 10px; + top: 0px; + z-index: 99999; position: fixed; border-top-right-radius: 10px; font-size: 12px; + overflow-y: auto; transition: background-color 0.3s ease-in-out, padding 0.3s ease, max-width 0.3s ease, opacity 0.3s ease-in-out, visibility 0.3s step-end; } \ No newline at end of file diff --git a/obsidian.js b/obsidian.js index a2b9dee..d532982 100644 --- a/obsidian.js +++ b/obsidian.js @@ -1060,7 +1060,7 @@ export async function wrapInPage(html, startPage, req) {
${await getTopBar(startPage, req)}
-