feat(web): use history routing and preserve scroll on filter changes
This commit is contained in:
1 parent
1b08854b25
commit
52a8d90c47
9 files changed
+113
-33
No files matched your search
@@ -43,7 +43,7 @@ function icon(name) {
|
||||
function renderNav() {
|
||||
const nav = document.querySelector("#bottom-nav");
|
||||
nav.innerHTML = NAV_ITEMS.map((item) => `
|
||||
<a class="nav-item" href="#${item.path}" data-nav="${item.path}">
|
||||
<a class="nav-item" href="${item.path}" data-nav="${item.path}">
|
||||
${icon(item.icon)}<span class="nav-label">${item.label}</span>
|
||||
</a>`).join("");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user