1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-04-15 10:12:09 -04:00

Add preference for configuring sticky navbar

Fixes #1354
This commit is contained in:
Zed
2026-02-09 17:32:03 +01:00
parent 0a6e79e626
commit 5d28bd18c6
9 changed files with 26 additions and 15 deletions

View File

@@ -131,7 +131,8 @@ proc renderMain*(body: VNode; req: Request; cfg: Config; prefs=defaultPrefs;
renderHead(prefs, cfg, req, titleText, desc, video, images, banner, ogTitle,
rss, twitterLink)
body:
let bodyClass = if prefs.stickyNav: "fixed-nav" else: ""
body(class=bodyClass):
renderNavbar(cfg, req, rss, twitterLink)
tdiv(class="container"):