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: use container queries for AI tools banner two-column layout
Media queries respond to viewport width, not the actual container width. When the Decimal push-sidebar is open the viewport stays wide but the content area shrinks, keeping the two-column layout even when there is not enough room. Switch to @container / @md: so the columns stack based on the banner's own width. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmitha Mallesh committed
Mar 9, 2026 at 21:58 UTC
ddfce2c71fbaac74546d75d5125332fb4d8b9682
1 file changed
+2
-2
docs/components/ai-tools-banner.tsx
+2
-2
@@ -38,7 +38,7 @@ function CopyableCommand({ text }: { text: string }) {
38
39
export function AIToolsBanner() {
40
return (
41
- <div className="not-prose relative mt-4 mb-4 sm:mt-6 sm:mb-6 overflow-hidden rounded-xl border border-fd-border bg-fd-card">
41
+ <div className="not-prose relative mt-4 mb-4 sm:mt-6 sm:mb-6 overflow-hidden rounded-xl border border-fd-border bg-fd-card @container">
42
{/* Shader gradient blobs — same as PromptBanner */}
43
<div
44
className="pointer-events-none absolute -left-16 -top-24 h-64 w-64 rounded-full"
@@ -64,7 +64,7 @@ export function AIToolsBanner() {
64
</div>
65
66
{/* Two-column: Skills + CLI */}
67
- <div className="flex flex-col gap-3 md:flex-row md:gap-4">
67
+ <div className="flex flex-col gap-3 @md:flex-row @md:gap-4">
68
{/* Skills */}
69
<div className="flex flex-1 flex-col gap-1">
70
<span className="text-[11px] font-semibold uppercase tracking-[0.08em] text-[var(--composio-orange)]">Skills</span>