Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
copy: Use redesigned copy button in user profile modal.
Sayam Samala74aaca8fcbf
diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 4077038bdf7..cf884abedf2 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -207,6 +207,7 @@.custom-user-url-field {display: flex;+ align-items: center;/* Maintain space between URL and copy icon. */gap: 3px;overflow: hidden;@@ -218,27 +219,7 @@}.copy-custom-field-url {- /* Don't flex; preserve 20px space for icon. */- flex: 0 0 20px;- /* Make button a flex item to center icon. */- display: flex;- align-items: center;- justify-content: center;- background-color: transparent;- border: 0;- padding: 0;-- #clipboard_image {- margin: 0;-- &:hover path {- fill: hsl(204deg 100% 40%);- }- }-- &:focus {- outline: none;- }+ height: 1em;}}diff --git a/web/templates/user_custom_profile_fields.hbs b/web/templates/user_custom_profile_fields.hbsindex df2be0929ae..4ef1685d4c5 100644--- a/web/templates/user_custom_profile_fields.hbs+++ b/web/templates/user_custom_profile_fields.hbs@@ -6,9 +6,9 @@{{#if this.is_link}}<div class="custom-user-url-field"><a tabindex="0" href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value custom-profile-fields-link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{this.value}}</a>- <button type="submit" class="tippy-zulip-tooltip copy-custom-field-url" data-tippy-content="{{t 'Copy URL' }}">- {{> copy_to_clipboard_svg }}- </button>+ <span tabindex="0" class="copy-btn copy-custom-field-url tippy-zulip-tooltip" aria-label="{{t 'Copy URL' }}" data-tippy-content="{{t 'Copy URL' }}">+ <i class="zulip-icon zulip-icon-copy" aria-hidden="true"></i>+ </span></div>{{else if this.is_external_account}}<a tabindex="0" href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value custom-profile-fields-link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">