Skip to content

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

Sushmitha Mallesh3aea37c3027b
diff --git a/docs/app/global.css b/docs/app/global.css
index 0e3a6b1c3..10d5ba4aa 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -556,6 +556,25 @@ p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {
color: var(--color-green-500);
}
+/* ==========================================================================
+ Search Dialog – Mobile Scroll Fix
+ On mobile, when the keyboard opens the viewport shrinks. Constrain the
+ search result list to the remaining space so it stays scrollable.
+ ========================================================================== */
+
+@media (max-width: 767px) {
+ /* Let the list wrapper (SearchDialogList outer div) shrink within the flex column */
+ [role="dialog"].fixed > div[data-empty] {
+ min-height: 0;
+ flex: 1 1 0%;
+ }
+
+ /* Override the fixed max-h-[460px] on the inner scrollable div */
+ [role="dialog"].fixed > div[data-empty] > div {
+ max-height: 100%;
+ }
+}
+
@layer base {
* {
@apply border-border outline-ring/50;
diff --git a/docs/components/custom-search-dialog.tsx b/docs/components/custom-search-dialog.tsx
index d1692969f..50f932334 100644
--- a/docs/components/custom-search-dialog.tsx
+++ b/docs/components/custom-search-dialog.tsx
@@ -57,7 +57,7 @@ export default function CustomSearchDialog({
{...props}
>
<SearchDialogOverlay />
- <SearchDialogContent>
+ <SearchDialogContent className="max-md:max-h-[calc(100dvh-2rem)] max-md:flex max-md:flex-col">
<SearchDialogHeader>
<SearchDialogIcon />
<SearchDialogInput />