Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
gifs: Introduce fallback placement options for GIFs.
apoorvapendse96d7c5a2e025
diff --git a/web/src/gif_picker_ui.ts b/web/src/gif_picker_ui.tsindex 149ec1e0552..7326bdcc9d4 100644--- a/web/src/gif_picker_ui.ts+++ b/web/src/gif_picker_ui.ts@@ -172,6 +172,20 @@ function toggle_picker_popover(target: HTMLElement): void {{theme: "popover-menu",placement: "top",+ popperOptions: {+ modifiers: [+ {+ // The placement is set to top by default, and we use+ // bottom and left configurations as fallback, which is+ // useful for scenarios when opening the picker while editing+ // messages near the top of the viewport.+ name: "flip",+ options: {+ fallbackPlacements: ["bottom", "left"],+ },+ },+ ],+ },onCreate(instance) {const provider = network.get_provider();instance.setContent(