Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list_view: Change date of sticky header more carefully.
Aman Agrawal5b71acf21b6b
diff --git a/web/src/message_list_view.js b/web/src/message_list_view.jsindex 976835323bb..fcbedf793d7 100644--- a/web/src/message_list_view.js+++ b/web/src/message_list_view.js@@ -1511,10 +1511,14 @@ export class MessageListView {} else {$sticky_header.addClass("sticky_header");const sticky_header_props = $sticky_header[0].getBoundingClientRect();+ /* date separator starts to be hidden at this height difference. */+ const date_separator_padding = 7;+ const sticky_header_bottom = sticky_header_props.top + sticky_header_props.height;+ const possible_new_date_separator_start = sticky_header_bottom - date_separator_padding;/* Get `message_row` under the sticky header. */const elements_below_sticky_header = document.elementsFromPoint(sticky_header_props.left,- sticky_header_props.top,+ possible_new_date_separator_start,);$message_row = $(elements_below_sticky_header.filter((element) =>