Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view: Disallow row hover-states on touchscreens.
Karl Stolley2bba31d51223
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.cssindex 22b1631b5f4..f16fe592f5a 100644--- a/web/styles/recent_view.css+++ b/web/styles/recent_view.css@@ -363,11 +363,16 @@& tr {background-color: var(--color-background-recent-view-row);- &:hover {- background-color: var(--color-background-recent-view-row-hover);+ /* Avoid annoying, confusing hover-state when scrolling on+ touch devices like iPad that treat a tap-and-hold/swipe+ as a hover. */+ @media (hover: hover) and (pointer: fine) {+ &:hover {+ background-color: var(--color-background-recent-view-row-hover);- .change_visibility_policy .recent-view-row-topic-menu {- opacity: 0.4;+ .change_visibility_policy .recent-view-row-topic-menu {+ opacity: 0.4;+ }}}}@@ -375,10 +380,15 @@.unread_topic {background-color: var(--color-background-recent-view-unread-row);- &:hover {- background-color: var(- --color-background-recent-view-unread-row-hover- );+ /* Avoid annoying, confusing hover-state when scrolling on+ touch devices like iPad that treat a tap-and-hold/swipe+ as a hover. */+ @media (hover: hover) and (pointer: fine) {+ &:hover {+ background-color: var(+ --color-background-recent-view-unread-row-hover+ );+ }}}