mirror of https://github.com/zulip/zulip.git
css: Fix edit icon bug in user profile modal.
Close user profile modal on clicking the space around edit button, by calling hide_user_profile() on clicking the hover box around the edit button. Also, modified the hover box to center around the edit button.
This commit is contained in:
parent
4508fb5d5c
commit
724af12cd6
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue