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: target search results with wrapper class instead of data-empty

Sushmitha Malleshceaffc548419
diff --git a/docs/app/global.css b/docs/app/global.css
index 10d5ba4aa..84ddc8561 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -563,14 +563,8 @@ p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {
========================================================================== */
@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 {
+ /* Override the fixed max-h-[460px] on the inner scrollable div inside SearchDialogList */
+ .search-scroll-container > div > div {
max-height: 100%;
}
}
diff --git a/docs/components/custom-search-dialog.tsx b/docs/components/custom-search-dialog.tsx
index 50f932334..e1b5fdcf1 100644
--- a/docs/components/custom-search-dialog.tsx
+++ b/docs/components/custom-search-dialog.tsx
@@ -63,25 +63,27 @@ export default function CustomSearchDialog({
<SearchDialogInput />
<SearchDialogClose />
</SearchDialogHeader>
- {query.data === 'empty' && defaultLinks.length > 0 ? (
- <div className="flex flex-col p-2">
- {defaultLinks.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- onClick={() => props.onOpenChange(false)}
- className="rounded-lg px-2.5 py-2 text-start text-sm transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground"
- >
- <p className="font-medium">{link.title}</p>
- <p className="text-xs text-fd-muted-foreground">
- {link.description}
- </p>
- </Link>
- ))}
- </div>
- ) : (
- <SearchDialogList items={query.data === 'empty' ? null : query.data} />
- )}
+ <div className="search-scroll-container max-md:min-h-0 max-md:flex-1 max-md:overflow-hidden">
+ {query.data === 'empty' && defaultLinks.length > 0 ? (
+ <div className="flex flex-col p-2">
+ {defaultLinks.map((link) => (
+ <Link
+ key={link.href}
+ href={link.href}
+ onClick={() => props.onOpenChange(false)}
+ className="rounded-lg px-2.5 py-2 text-start text-sm transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground"
+ >
+ <p className="font-medium">{link.title}</p>
+ <p className="text-xs text-fd-muted-foreground">
+ {link.description}
+ </p>
+ </Link>
+ ))}
+ </div>
+ ) : (
+ <SearchDialogList items={query.data === 'empty' ? null : query.data} />
+ )}
+ </div>
<div className="flex items-center justify-between border-t px-3 py-2">
<button
type="button"