Skip to content

Commit

Permalink
Small fix total badges position
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Sep 25, 2020
1 parent 3dbbdd4 commit 45f14f2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions templates/main_filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,21 @@
}
if (main_filter_total_unknown > 0) {
total_unknown.appendChild(document.createTextNode(main_filter_total_unknown));
$("#total_unknown").position({
my: "center",
at: "center",
of: first_unknown_badge,
collision: "fit"
});
if (main_filter_total_known > 0) {
$("#total_unknown").position({
my: "right",
at: "left",
of: first_known_badge,
collision: "fit"
});
} else {
$("#total_unknown").position({
my: "center",
at: "center",
of: first_unknown_badge,
collision: "fit"
});
}
$("#total_unknown").css('top', 10);
}
}
Expand Down

0 comments on commit 45f14f2

Please sign in to comment.