mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
header-avatar: Remove background and border around loaded image.
This commit is contained in:
@@ -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() {
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user