Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_profile: Properly center icon for copying URLs.

Karl Stolley083163605045
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 5e490bc2b9c..566bac76943 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -178,6 +178,8 @@
.custom-user-url-field {
display: flex;
+ /* Maintain space between URL and copy icon. */
+ gap: 3px;
overflow: hidden;
.custom-profile-fields-link {
@@ -187,13 +189,18 @@
}
.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 {
- /* Adjust margin to align the copy icon */
- margin: -2px 0 0 6px;
+ margin: 0;
&:hover path {
fill: hsl(204deg 100% 40%);