Skip to content

best way to save what you love

scroll to top on tab change in popups

wukko0cfdf15cfa37
diff --git a/src/front/cobalt.js b/src/front/cobalt.js
index 99301f46..c02ae3a4 100644
--- a/src/front/cobalt.js
+++ b/src/front/cobalt.js
@@ -133,6 +133,7 @@ function changeTab(evnt, tabId, tabClass) {
evnt.currentTarget.dataset.enabled = "true";
eid(tabId).dataset.enabled = "true";
+ eid(tabId).parentElement.scrollTop = 0;
if (tabId === "tab-about-changelog" && sGet("changelogStatus") !== `${version}`) notificationCheck("changelog");
if (tabId === "tab-about-about" && !sGet("seenAbout")) notificationCheck("about");