Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
gif_picker: Switch to a two-column layout.
apoorvapendse81bf8aabc038
diff --git a/web/src/gif_picker_ui.ts b/web/src/gif_picker_ui.tsindex b98b9c4fda8..da02d5f404d 100644--- a/web/src/gif_picker_ui.ts+++ b/web/src/gif_picker_ui.ts@@ -91,11 +91,11 @@ function handle_keyboard_navigation_on_gif(e: JQuery.KeyDownEvent): void {break;}case "ArrowUp": {- focus_gif_at_index(curr_gif_index - 3);+ focus_gif_at_index(curr_gif_index - 2);break;}case "ArrowDown": {- focus_gif_at_index(curr_gif_index + 3);+ focus_gif_at_index(curr_gif_index + 2);break;}}diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 469a2fc5cf8..cf4e878ccbc 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -169,9 +169,11 @@Chrome 105) that do not support dynamic viewportunits. 100% is the legacy full-height value. */--full-height-dynamic-viewport: 100%;+ --gif-scroll-container-height: 80vh;@supports (height: 100dvh) {--full-height-dynamic-viewport: 100dvh;+ --gif-scroll-container-height: 80dvh;}/*diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 03a41a0fc30..bd33d96491f 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -492,10 +492,11 @@ ul.popover-group-menu-member-list {}.gif-grid-in-popover {- /* 300px of GIF grid + 5px is the extra gutter space- * + 1px for outline + 4px padding.- * between gif columns. */- width: 310px;+ width: 90vw;+ /* 6px `.gif-scroll-container` horizontal margin + 6px is the extra gutter space+ + 4px padding between gif columns. Our max-width is calculated based on this so the+ max width of the GIFs becomes 250px */+ max-width: 516px;border: 0;padding: 0;@@ -505,7 +506,7 @@ ul.popover-group-menu-member-list {.gif-picker-content {display: grid;- grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));+ grid-template-columns: repeat(2, minmax(0, 1fr));grid-auto-rows: auto;gap: 6px;@@ -535,7 +536,8 @@ ul.popover-group-menu-member-list {.gif-scrolling-container {overflow: hidden auto;- height: 300px;+ height: var(--gif-scroll-container-height);+ max-height: 500px;margin: 2px 3px;padding: 5px 0;}