Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tooltip: Remove dead code related to old tooltips system.
Aman Agrawalbb4d77b9f5fa
diff --git a/web/src/click_handlers.ts b/web/src/click_handlers.tsindex d9ad291d3e4..6ce5090de0b 100644--- a/web/src/click_handlers.ts+++ b/web/src/click_handlers.ts@@ -259,7 +259,6 @@ export function initialize(): void {const local_id = $(this).attr("data-reaction-id")!;const message_id = rows.get_message_id(this);reactions.process_reaction_click(message_id, local_id);- $(".tooltip").remove();});$("body").on("click", ".reveal_hidden_message", (e) => {@@ -465,7 +464,6 @@ export function initialize(): void {e.preventDefault();e.stopPropagation();sidebar_ui.hide_userlist_sidebar();- $(".tooltip").remove();});// Doesn't show tooltip on touch devices.diff --git a/web/src/message_view.ts b/web/src/message_view.tsindex 18f11afbdec..0493879b366 100644--- a/web/src/message_view.ts+++ b/web/src/message_view.ts@@ -613,10 +613,6 @@ export let show = (raw_terms: NarrowTerm[], show_opts: ShowMessageViewOpts): voiinbox_ui.hide();}- // Open tooltips are only interesting for current narrow,- // so hide them when activating a new one.- $(".tooltip").hide();-blueslip.debug("Narrowed", {operators: terms.map((e) => e.operator),trigger: opts ? opts.trigger : undefined,diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex a5c8a72929f..011391f2070 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -50,10 +50,6 @@margin-right: 10px;}-.tooltip {- max-width: 18em;-}-.masked_unread_count {/* 8px at 16px/14em */font-size: 0.5em;diff --git a/web/styles/portico/stats.css b/web/styles/portico/stats.cssindex 5e87f645733..899587625d7 100644--- a/web/styles/portico/stats.css+++ b/web/styles/portico/stats.css@@ -121,16 +121,6 @@ p {text-decoration: none;}-.tooltip-inner {- padding: 10px;- max-width: 350px;-- font-size: 0.75rem;- font-weight: 400;- text-align: left;- line-height: 1.4;-}-.last-update {margin: 0 0 30px;diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 1e0c30387ae..37cf2d25041 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -702,42 +702,6 @@ strong {white-space: nowrap;}-.tooltip {- &.in {- font-size: 12px;- line-height: 1.3;-- opacity: 1;-- &.left {- margin-left: -12px;- margin-top: 3px;- }- }-- .tooltip-inner {- background-color: hsl(0deg 0% 7% / 80%);- padding: 3px 5px;- }-- /*- Since hover and click are activated together on touchscreen- devices, the hover state persists until the next click, creating- awkward UI where the tooltip sticks around forever :(.-- To resolve this, we just hide the tooltip for touch-events on- touch-enabled devices resolving the above problem. This means- that tooltips will never appear on touchscreen devices, but that's- probably a reasonable tradeoff here.-- Source: https://drafts.csswg.org/mediaqueries-4/#mf-interaction- */-- @media (hover: none) {- visibility: hidden !important;- }-}-.buddy_list_tooltip_content {text-align: left;word-wrap: break-word;@@ -1995,12 +1959,6 @@ body:not(.hide-left-sidebar) {}}-.tooltip_right_arrow {- position: relative;- top: -1px;- font-weight: 600;-}-.spectator_login_for_image_button {max-width: 250px;height: 50px;