Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view: Show same hover area for all the sortable headers.
Aman Agrawalba677bed7352
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.cssindex 762c03e150b..5c15c2292b8 100644--- a/web/styles/recent_view.css+++ b/web/styles/recent_view.css@@ -598,12 +598,16 @@.recent-view-topic-header {/* Match left padding with row td (.recent_topic_name),including the extra space for the unread marker bar. */- padding: 0.25em 0.5em 0.25em 0.75em; /* 4px 8px 4px 12px at 16px/1em */+ padding: 0 0.5em 0 0; /* 8px 12px at 16px/1em *//* th no longer has data-sort; the individual sort spans handlecursor and hover. */cursor: default;.recent-view-header-wrapper {+ /* 0.75em left padding, 1px header width */+ --recent-view-channel-row-header-minus-body: calc(+ 0.75em + var(--recent-view-body-border-width) - 1px+ );/* Match the row grid so "Channel" and "Conversation" sortspans align with channel and topic text in rows. Sortarrows are inside the spans, so 3 columns suffice.@@ -611,14 +615,26 @@at 16px/1em) privacy icon width in data rows. */display: grid;grid-template-columns:- min(- calc(- var(--longest-subscribed-channel-name-width) + 1em + 8px- ),- 33.3%+ calc(+ min(+ calc(+ var(--longest-subscribed-channel-name-width) ++ 1em + 8px+ ),+ calc(+ calc(+ 100% -+ var(+ --recent-view-channel-row-header-minus-body+ )+ ) /+ 3+ )+ ) ++ var(--recent-view-channel-row-header-minus-body))auto 1fr auto;- align-items: center;+ align-items: stretch;}.recent-view-channel-sort-header,@@ -630,8 +646,8 @@cursor: pointer;/* Negative margin compensates the padding so the pill hoverhighlight doesn't push adjacent elements out of alignment. */- padding: 0.125em 0.25em; /* 2px 4px at 16px/1em */- margin: -0.125em -0.25em;+ padding: 0.25em; /* 4px at 16px/1em */+ margin: 0;border-radius: 3px;transition: background-color 100ms ease-in-out;@@ -654,6 +670,11 @@}}+ .recent-view-channel-sort-header {+ padding-left: 1em;+ margin-left: 0;+ }+.recent-view-conversation-sort-header {/* Prevent hover pill highlight from extending intothe adjacent unread sort column. */@@ -729,7 +750,7 @@calc(var(--longest-subscribed-channel-name-width) + 1em + 8px),- 33.3%+ calc(100% / 3))auto 1fr auto;align-items: center;