Author SHA1 Message Date
ahp 56a4ad8570 Merge branch 'libracoder:main' into content-scroll-reset 2026-11-06 09:14:40 +03:30
ahp 1434f89761 Views open at the top, not where the last page was scrolled to
Opening a container's, pod's or service's page scrolled the content
back to the top, but switching views from the sidebar didn't. Leaving a
container's Terminal or Logs tab scrolled down then opened the next view
at that offset, below its rows: Images looked empty, Networks showed only
its last network. show() now resets the scroll as those pages do.
2026-11-05 12:07:17 +03:30
+3
View File
@@ -3419,6 +3419,9 @@ function show(view) {
if (view === "share") { send("shares"); send("shareusage"); shPoll(); }
if (view === "settings") { if (!fontLists.families.length) send("fonts"); send("about"); send("logins"); send("resources"); send("proxy"); if (!ui.imp.sources) send("importsources"); if (prefs.tab === "diagnostics") diagOpen(); }
render();
// From the top, as a container's or pod's page opens: leaving a page scrolled
// down (a long Terminal or Logs tab) otherwise opened the next view below its rows.
$("content").scrollTop = 0;
}
const empty = {