mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-22 05:26:14 +08:00
keeping default icon under the image
This commit is contained in:
parent
4dc6f1e791
commit
115e434ce9
2 changed files with 2 additions and 4 deletions
|
@ -36,7 +36,6 @@
|
|||
transition: opacity 0.125s, filter 0.125s, webkit-filter 0.125s;
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
background: var(--sub-color);
|
||||
border-radius: 100%;
|
||||
background-position: center center;
|
||||
background-size: contain;
|
||||
|
|
|
@ -7,7 +7,6 @@ export function loading(truefalse: boolean): void {
|
|||
if (truefalse) {
|
||||
if (usingAvatar) {
|
||||
$("#top #menu .account .avatar").addClass("hidden");
|
||||
$("#top #menu .account .icon").removeClass("hidden");
|
||||
}
|
||||
$("#top #menu .account .icon").html(
|
||||
'<i class="fas fa-fw fa-spin fa-circle-notch"></i>'
|
||||
|
@ -16,7 +15,6 @@ export function loading(truefalse: boolean): void {
|
|||
} else {
|
||||
if (usingAvatar) {
|
||||
$("#top #menu .account .avatar").removeClass("hidden");
|
||||
$("#top #menu .account .icon").addClass("hidden");
|
||||
}
|
||||
$("#top #menu .account .icon").html('<i class="fas fa-fw fa-user"></i>');
|
||||
$("#top #menu .account").css("opacity", 1).css("pointer-events", "auto");
|
||||
|
@ -32,7 +30,8 @@ export function update(discordId?: string, discordAvatar?: string): void {
|
|||
`url(https://cdn.discordapp.com/avatars/${discordId}/${discordAvatar}.png)`
|
||||
);
|
||||
$("#top #menu .account .avatar").removeClass("hidden");
|
||||
$("#top #menu .account .icon").addClass("hidden");
|
||||
} else {
|
||||
$("#top #menu .account .avatar").addClass("hidden");
|
||||
}
|
||||
Misc.swapElements(
|
||||
$("#menu .text-button.login"),
|
||||
|
|
Loading…
Add table
Reference in a new issue