Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent: Clarify recenter_focus_if_off_screen.
Tim Abbottc995e48e11c1
diff --git a/web/src/recent_topics_ui.js b/web/src/recent_topics_ui.jsindex 041263e848b..b5ed684764d 100644--- a/web/src/recent_topics_ui.js+++ b/web/src/recent_topics_ui.js@@ -759,7 +759,7 @@ function topic_offset_to_visible_area(topic_row) {return "visible";}-function set_focus_to_element_in_center() {+function recenter_focus_if_off_screen() {const table_wrapper_element = document.querySelector("#recent_topics_table .table_fix_head");const $topic_rows = $("#recent_topics_table table tbody tr");@@ -857,7 +857,7 @@ export function complete_rerender() {popovers.hide_all();// Update the focused element for keyboard navigation if needed.- set_focus_to_element_in_center();+ recenter_focus_if_off_screen();},get_min_load_count,});