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_card_popover: Cleanup user card popover after redesign.

Sayam Samal1f6fcb81e827
diff --git a/web/src/user_card_popover.js b/web/src/user_card_popover.js
index 89b34e4481c..3d86f0fc076 100644
--- a/web/src/user_card_popover.js
+++ b/web/src/user_card_popover.js
@@ -329,22 +329,6 @@ function show_user_card_popover(
}
init_email_clipboard();
init_email_tooltip(user);
-
- const $popover = $(instance.popper);
- const $user_name_element = $popover.find(".user_full_name");
- const $bot_owner_element = $popover.find(".bot_owner");
-
- if (
- $user_name_element.prop("clientWidth") < $user_name_element.prop("scrollWidth")
- ) {
- $user_name_element.addClass("tippy-zulip-tooltip");
- }
- if (
- args.bot_owner &&
- $bot_owner_element.prop("clientWidth") < $bot_owner_element.prop("scrollWidth")
- ) {
- $bot_owner_element.addClass("tippy-zulip-tooltip");
- }
},
},
{
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 5bfa063e8b3..67a2bc68637 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -124,29 +124,6 @@
white-space: nowrap;
}
-.popover_user_name_row {
- display: flex;
- align-items: center;
-
- .zulip-icon.zulip-icon-bot {
- padding-left: 5px;
- }
-}
-
-.user-card-popover-action-buttons {
- margin-left: auto;
- line-height: 1;
-}
-
-/* Used extra classes to override styles from .nav */
-.tippy-box .tippy-content .user-card-popover-content {
- padding: 5px 0;
-
- .user-card-popover-actions {
- margin: 0;
- }
-}
-
.custom-profile-field-value {
display: flex;
align-items: center;
@@ -284,42 +261,6 @@
}
}
-ul {
- &.user-card-popover-actions i {
- display: inline-block;
- text-align: center;
-
- &:not(.popover_action_icon, .guest-indicator) {
- width: 14px;
- }
-
- &:not(.popover_action_icon, .custom_user_field i) {
- margin-right: 3px;
- }
-
- &.zulip-icon {
- /* These icons are different from font awesome icons,
- so they need to be aligned separately. */
- line-height: 14px;
- position: relative;
-
- &:not(.zulip-icon-bot) {
- top: 2px;
- }
-
- &.popover_action_icon {
- font-size: 17px;
- line-height: 1;
- top: 1px;
- }
- }
- }
-
- &.user-card-popover-actions i.fa-edit {
- vertical-align: middle;
- }
-}
-
.popover-group-menu-info {
display: flex;
flex-direction: column;
@@ -880,31 +821,6 @@ ul.popover-group-menu-member-list {
}
}
-.user-card-status-area {
- opacity: 0.8;
-
- .status-emoji {
- height: 18px;
- width: 18px;
- /* Override the default 3px left margin for status emoji, which is
- intended for their presentation elsewhere to the left of a
- user's name. */
- margin-left: 0;
- margin-right: 2px;
- }
-
- #status_message {
- padding: 1px 0;
- display: flex;
- align-items: baseline;
- hyphens: auto;
- }
-
- .status_text {
- overflow-wrap: anywhere;
- }
-}
-
#move_topic_modal {
& form {
margin: 0;