Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Fix formatting popover persists on wide screens.
Aman Agrawal0d3e223493ae
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 79844bfd85b..5ff10ac5e78 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -1003,6 +1003,10 @@ textarea.new_message_textarea,}.compose_control_menu_wrapper {+ /* Since `compose_control_menu_wrapper` is the reference for the tippy popover, it is+ important to set it's display correctly so that tippy knows when to hide / show popover+ on window resize. */+ display: none;opacity: 0.7;padding: 0;margin: 0;@@ -1014,13 +1018,16 @@ textarea.new_message_textarea,.compose_control_menu {opacity: 1;display: none;+ }- /* The media query below handles the hiding and showing of the- vdot menu icon, so that it is hidden when all compose buttons fit- in the main row below the compose box. So, this is the same as- the media query for .show_popover_buttons. */+ /* The media query below handles the hiding and showing of the+ vdot menu icon, so that it is hidden when all compose buttons fit+ in the main row below the compose box. So, this is the same as+ the media query for .show_popover_buttons. */+ @media (((width < $cb1_min) and (width >= $xl_min)) or ((width < $cb2_min) and (width >= $md_min)) or (width < $cb4_min)) {+ display: block;- @media (((width < $cb1_min) and (width >= $xl_min)) or ((width < $cb2_min) and (width >= $md_min)) or (width < $cb4_min)) {+ .compose_control_menu {display: flex;}}