Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: enable mobile scrolling in search dialog
The search results list was unscrollable on mobile because the dialog had no max-height constraint and the inner list used a fixed max-h of 460px that exceeded the viewport when the keyboard was open. Constrain the dialog to 100dvh on mobile with flex layout so the list shrinks to fit the available space. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmitha Mallesh committed
Mar 9, 2026 at 14:37 UTC
3aea37c3027b73185bda4485f84973e8377e4230
2 files changed
+20
-1
docs/app/global.css
+19
@@ -556,6 +556,25 @@ p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {
556
color: var(--color-green-500);
557
}
558
559
+/* ==========================================================================
560
+ Search Dialog – Mobile Scroll Fix
561
+ On mobile, when the keyboard opens the viewport shrinks. Constrain the
562
+ search result list to the remaining space so it stays scrollable.
563
+ ========================================================================== */
564
+
565
+@media (max-width: 767px) {
566
+ /* Let the list wrapper (SearchDialogList outer div) shrink within the flex column */
567
+ [role="dialog"].fixed > div[data-empty] {
568
+ min-height: 0;
569
+ flex: 1 1 0%;
570
+ }
571
+
572
+ /* Override the fixed max-h-[460px] on the inner scrollable div */
573
+ [role="dialog"].fixed > div[data-empty] > div {
574
+ max-height: 100%;
575
+ }
576
+}
577
+
578
@layer base {
579
* {
580
@apply border-border outline-ring/50;
docs/components/custom-search-dialog.tsx
+1
-1
@@ -57,7 +57,7 @@ export default function CustomSearchDialog({
57
{...props}
58
>
59
<SearchDialogOverlay />
60
- <SearchDialogContent>
60
+ <SearchDialogContent className="max-md:max-h-[calc(100dvh-2rem)] max-md:flex max-md:flex-col">
61
<SearchDialogHeader>
62
<SearchDialogIcon />
63
<SearchDialogInput />