mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 14:46:01 +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}`) {
|
if (push && location.hash !== `#${next}`) {
|
||||||
history.replaceState(null, "", `#${next}`);
|
history.replaceState(null, "", `#${next}`);
|
||||||
}
|
}
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
window.scrollTo({ top: 0, behavior: push ? "smooth" : "auto" });
|
||||||
|
});
|
||||||
if (next === "traffic") {
|
if (next === "traffic") {
|
||||||
refreshStats().catch((err) => toast(err.message));
|
refreshStats().catch((err) => toast(err.message));
|
||||||
} else if (next === "keys") {
|
} else if (next === "keys") {
|
||||||
|
|||||||
@@ -400,6 +400,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -935,6 +935,7 @@ td small {
|
|||||||
|
|
||||||
.user-traffic-panel {
|
.user-traffic-panel {
|
||||||
margin-top: 18px;
|
margin-top: 18px;
|
||||||
|
scroll-margin-top: 112px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-control {
|
.status-control {
|
||||||
|
|||||||
Reference in New Issue
Block a user