Skip to content

Commit

Permalink
style: reorder stats containers (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nmw committed Mar 21, 2024
1 parent 44b99b0 commit 52a66a1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/gui/DeckListView.tsx
Expand Up @@ -109,9 +109,9 @@ export class DeckListView {
const statistics: DeckStats = this.reviewSequencer.getDeckStats(TopicPath.emptyPath);
this.stats.empty();

this._createHeaderStatsContainer(t("TOTAL_CARDS"), statistics.totalCount, "sr-bg-red");
this._createHeaderStatsContainer(t("NEW_CARDS"), statistics.newCount, "sr-bg-blue");
this._createHeaderStatsContainer(t("DUE_CARDS"), statistics.dueCount, "sr-bg-green");
this._createHeaderStatsContainer(t("NEW_CARDS"), statistics.newCount, "sr-bg-blue");
this._createHeaderStatsContainer(t("TOTAL_CARDS"), statistics.totalCount, "sr-bg-red");
}

private _createHeaderStatsContainer(
Expand Down Expand Up @@ -200,16 +200,16 @@ export class DeckListView {
statsWrapper.empty();

this._createStatsContainer(
t("TOTAL_CARDS"),
statistics.totalCount,
"sr-bg-red",
t("DUE_CARDS"),
statistics.dueCount,
"sr-bg-green",
statsWrapper,
);
this._createStatsContainer(t("NEW_CARDS"), statistics.newCount, "sr-bg-blue", statsWrapper);
this._createStatsContainer(
t("DUE_CARDS"),
statistics.dueCount,
"sr-bg-green",
t("TOTAL_CARDS"),
statistics.totalCount,
"sr-bg-red",
statsWrapper,
);
}
Expand Down

0 comments on commit 52a66a1

Please sign in to comment.