Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ui: Fix detection of narrow window. Fixes #17280.
Nishant Mittalf6597447209d
diff --git a/static/js/message_viewport.js b/static/js/message_viewport.jsindex 10bee87aec7..f8a81bfb048 100644--- a/static/js/message_viewport.js+++ b/static/js/message_viewport.js@@ -307,7 +307,7 @@ exports.is_narrow = function () {// This basically returns true when we hide the right sidebar for// the left_side_userlist skinny mode. It would be nice to have a less brittle// test for this.- return window.innerWidth < media_breakpoints.xl_min;+ return window.innerWidth < Number(media_breakpoints.xl_min.slice(0, -2));};exports.system_initiated_animate_scroll = function (scroll_amount) {