@devries-cameron20 / composio Mirror · read-only / commits / ceaffc548
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 03:15 UTC

fix: target search results with wrapper class instead of data-empty

The previous CSS used div[data-empty] to target the SearchDialogList, which is a fumadocs internal attribute. Replace with a controlled wrapper div (.search-scroll-container) around the results area so the flex-shrink and max-height overrides apply regardless of list state. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 9, 2026 at 14:53 UTC ceaffc548419543192557fb7416e2c94a6662129
2 files changed +23 -27
docs/app/global.css
+2 -8
@@ -563,14 +563,8 @@ p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {
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 {
566 + /* Override the fixed max-h-[460px] on the inner scrollable div inside SearchDialogList */
567 + .search-scroll-container > div > div {
568 max-height: 100%;
569 }
570 }
docs/components/custom-search-dialog.tsx
+21 -19
@@ -63,25 +63,27 @@ export default function CustomSearchDialog({
63 <SearchDialogInput />
64 <SearchDialogClose />
65 </SearchDialogHeader>
66 - {query.data === 'empty' && defaultLinks.length > 0 ? (
67 - <div className="flex flex-col p-2">
68 - {defaultLinks.map((link) => (
69 - <Link
70 - key={link.href}
71 - href={link.href}
72 - onClick={() => props.onOpenChange(false)}
73 - className="rounded-lg px-2.5 py-2 text-start text-sm transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground"
74 - >
75 - <p className="font-medium">{link.title}</p>
76 - <p className="text-xs text-fd-muted-foreground">
77 - {link.description}
78 - </p>
79 - </Link>
80 - ))}
81 - </div>
82 - ) : (
83 - <SearchDialogList items={query.data === 'empty' ? null : query.data} />
84 - )}
66 + <div className="search-scroll-container max-md:min-h-0 max-md:flex-1 max-md:overflow-hidden">
67 + {query.data === 'empty' && defaultLinks.length > 0 ? (
68 + <div className="flex flex-col p-2">
69 + {defaultLinks.map((link) => (
70 + <Link
71 + key={link.href}
72 + href={link.href}
73 + onClick={() => props.onOpenChange(false)}
74 + className="rounded-lg px-2.5 py-2 text-start text-sm transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground"
75 + >
76 + <p className="font-medium">{link.title}</p>
77 + <p className="text-xs text-fd-muted-foreground">
78 + {link.description}
79 + </p>
80 + </Link>
81 + ))}
82 + </div>
83 + ) : (
84 + <SearchDialogList items={query.data === 'empty' ? null : query.data} />
85 + )}
86 + </div>
87 <div className="flex items-center justify-between border-t px-3 py-2">
88 <button
89 type="button"