mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 14:36:05 +00:00
v2.5.0: keep admin scroll clear
This commit is contained in:
@@ -605,6 +605,9 @@ function setPage(page, push = true) {
|
||||
if (push && location.hash !== `#${next}`) {
|
||||
history.replaceState(null, "", `#${next}`);
|
||||
}
|
||||
requestAnimationFrame(() => {
|
||||
window.scrollTo({ top: 0, behavior: push ? "smooth" : "auto" });
|
||||
});
|
||||
if (next === "traffic") {
|
||||
refreshStats().catch((err) => toast(err.message));
|
||||
} else if (next === "keys") {
|
||||
|
||||
@@ -400,6 +400,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/app.js?v=2.5.0-admin12" type="module"></script>
|
||||
<script src="/app.js?v=2.5.0-admin13" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -935,6 +935,7 @@ td small {
|
||||
|
||||
.user-traffic-panel {
|
||||
margin-top: 18px;
|
||||
scroll-margin-top: 112px;
|
||||
}
|
||||
|
||||
.status-control {
|
||||
|
||||
Reference in New Issue
Block a user