Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Fix edit icon bug in user profile modal.
SameepAher724af12cd61e
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex a55feb1a631..87689fb7e04 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -358,7 +358,7 @@ export function register_click_handlers() {/* These click handlers are implemented as just deep links to the* relevant part of the Zulip UI, so we don't want preventDefault,* but we do want to close the modal when you click them. */- $("body").on("click", "#user-profile-modal #name #edit-button", () => {+ $("body").on("click", "#user-profile-modal #name .user_profile_edit_button", () => {hide_user_profile();});diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex dd7adf120a3..33377a65e32 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -428,9 +428,14 @@ ul {}}+ .user_profile_edit_button {+ margin-left: 10px;+ width: 25px;+ text-align: center;+ }+#edit-button {font-size: 18px;- margin-left: 10px;}#default-section {diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbsindex 07cfe3c2836..cce8e652cc2 100644--- a/web/templates/user_profile_modal.hbs+++ b/web/templates/user_profile_modal.hbs@@ -11,7 +11,7 @@<i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>{{/if}}{{#if is_me}}- <a href="/#settings/profile">+ <a href="/#settings/profile" class="user_profile_edit_button"><i class="fa fa-edit" id="edit-button" aria-hidden="true"></i></a>{{/if}}