header-avatar: Remove background and border around loaded image.

This commit is contained in:
Aman Agrawal
2025-08-19 13:04:39 +05:30
committed by Tim Abbott
parent d386b62ec7
commit 693e86746e
2 changed files with 9 additions and 0 deletions

View File

@@ -196,6 +196,10 @@ function initialize_navbar() {
});
$("#header-container").html(rendered_navbar);
// Track when the image is loaded to updated CSS properties.
$("#header-container img.header-button-avatar-image").on("load", (e) => {
e.currentTarget.classList.add("avatar-loaded");
});
}
function initialize_compose_box() {

View File

@@ -2442,6 +2442,11 @@ body:not(.spectator-view) {
avatar in the navbar from being lower by a pixel. */
display: block;
}
&:has(.avatar-loaded) {
background-color: transparent;
border-color: transparent;
}
}
}