Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
header-avatar: Remove background and border around loaded image.
Aman Agrawal693e86746ef1
diff --git a/web/src/ui_init.js b/web/src/ui_init.jsindex 89b5839cfcc..5f8a315b862 100644--- a/web/src/ui_init.js+++ b/web/src/ui_init.js@@ -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() {diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 58586713b6b..7f31316f163 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -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;+ }}}