impr: increase the transition smoothness when opening the account page

This commit is contained in:
Miodec 2024-02-08 15:16:17 +01:00
parent 7068d6be5c
commit 67940204a1

View file

@ -1333,14 +1333,15 @@ export const page = new Page(
},
async () => {
Skeleton.append("pageAccount", "main");
await ResultFilters.appendButtons();
ResultFilters.updateActive();
await Misc.sleep(0);
if (DB.getSnapshot()?.results === undefined) {
$(".pageLoading .fill, .pageAccount .fill").css("width", "0%");
$(".pageAccount .content").addClass("hidden");
$(".pageAccount .preloader").removeClass("hidden");
await LoadingPage.showBar();
}
await ResultFilters.appendButtons();
ResultFilters.updateActive();
await Misc.sleep(0);
void update().then(() => {
void updateChartColors();