Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Remove hardcoded frb height.
Ryan Rehmanaa00ef3a3218
diff --git a/static/js/floating_recipient_bar.js b/static/js/floating_recipient_bar.jsindex 838019bc2cd..1c38caf066f 100644--- a/static/js/floating_recipient_bar.js+++ b/static/js/floating_recipient_bar.js@@ -20,8 +20,9 @@ export function first_visible_message(bar) {// overlaps the floating recipient bar's space (since you ).const messages = bar.children(".message_row");- const frb_bottom = get_frb_bottom();- const frb_top = frb_bottom - 25;+ const frb = $("#floating_recipient_bar");+ const frb_top = top_offset(frb);+ const frb_bottom = frb_top + frb.safeOuterHeight();let result;for (const message_element of messages) {@@ -109,14 +110,6 @@ export function get_date(elem) {return rendered_date;}-export function get_frb_bottom() {- const bar = $("#floating_recipient_bar");- const bar_top = top_offset(bar);- const bar_bottom = bar_top + bar.safeOuterHeight();-- return bar_bottom;-}-export function relevant_recipient_bars() {let elems = [];