Skip to content

Commit 00a8a2b

Browse files
committed
fix scrolling on navbar (sidebar)
1 parent d83632c commit 00a8a2b

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

css/sidebar.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#sidebar {
22
width: 250px;
33
height: 100vh;
4-
padding-top: 50px;
54
padding-left: 10px;
5+
top: 0px;
6+
z-index: 99999;
67
position: fixed;
78
border-top-right-radius: 10px;
89
font-size: 12px;
10+
overflow-y: auto;
911
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;
1012
}

obsidian.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ export async function wrapInPage(html, startPage, req) {
10601060
<body style="display: none;">
10611061
<div id="topbar">${await getTopBar(startPage, req)}</div>
10621062
<div id="wrapper">
1063-
<div id="sidebar" class="nav-font">${await getSideBar(
1063+
<div id="sidebar" class="nav-font">&nbsp;<br>${await getSideBar(
10641064
startPage,
10651065
req
10661066
)}</div>

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"lucide-static": "^0.357.0",
2121
"marked": "^12.0.1",
2222
"marked-shiki": "^1.0.1",
23-
"nodemon": "^3.1.0",
23+
"nodemon": "^3.1.5",
2424
"openid-client": "^5.6.5",
2525
"pako": "^2.1.0",
2626
"passport": "^0.7.0",

0 commit comments

Comments
 (0)