Skip to content

Commit

Permalink
fix scrolling on navbar (sidebar)
Browse files Browse the repository at this point in the history
  • Loading branch information
guFalcon committed Sep 18, 2024
1 parent d83632c commit 00a8a2b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion css/sidebar.css
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion obsidian.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ export async function wrapInPage(html, startPage, req) {
<body style="display: none;">
<div id="topbar">${await getTopBar(startPage, req)}</div>
<div id="wrapper">
<div id="sidebar" class="nav-font">${await getSideBar(
<div id="sidebar" class="nav-font">&nbsp;<br>${await getSideBar(
startPage,
req
)}</div>
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"lucide-static": "^0.357.0",
"marked": "^12.0.1",
"marked-shiki": "^1.0.1",
"nodemon": "^3.1.0",
"nodemon": "^3.1.5",
"openid-client": "^5.6.5",
"pako": "^2.1.0",
"passport": "^0.7.0",
Expand Down

0 comments on commit 00a8a2b

Please sign in to comment.