fixed a bug where accounts with no pbs would cause misplaced "show all pbs" button

This commit is contained in:
Miodec 2023-01-14 01:43:29 +01:00
parent 43205d3287
commit b29e4f4f05

View file

@ -5,13 +5,13 @@ import * as Misc from "../utils/misc";
function clearTables(isProfile: boolean): void {
const source = isProfile ? "Profile" : "Account";
const showAllButton = `<div
const showAllButton = `<div class="buttonGroup"><div
class="showAllButton button"
data-balloon-pos="left"
aria-label="Show all personal bests"
>
<i class="fas fa-ellipsis-v"></i>
</div>`;
</div></div>`;
const htmlToShow = isProfile ? "" : showAllButton;