Skip to content

Commit

Permalink
impr: increase the transition smoothness when opening the account page
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Feb 8, 2024
1 parent 7068d6b commit 6794020
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/ts/pages/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6794020

Please sign in to comment.