@devries-cameron20 / composio-1 / commits / 28d643916
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.

fix: Ask AI widget toggle and layout stability

- Add overflow-x:hidden and max-width transition to body so the Decimal push-sidebar animates smoothly without horizontal scroll - Replace stale module-level widgetOpen flag with DOM query (`.decimal-widget-sidebar.open`) so toggle stays in sync when the widget is closed by the user directly - Bump AI tools banner two-column breakpoint from sm to md so it stacks gracefully when the sidebar squeezes the content area Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 9, 2026 at 20:58 UTC 28d643916dabe2fe74c493621151c89311e930ba
3 files changed +17 -5
docs/app/global.css
+11
@@ -554,6 +554,17 @@ p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {
554 }
555 }
556
557 +/* ==========================================================================
558 + Decimal AI Widget – Push-Sidebar Transition
559 + The widget sets body.style.maxWidth inline when opening. Smooth it out
560 + and prevent horizontal overflow while the sidebar animates.
561 + ========================================================================== */
562 +
563 +body {
564 + overflow-x: hidden;
565 + transition: max-width 0.3s ease;
566 +}
567 +
568 @layer base {
569 * {
570 @apply border-border outline-ring/50;
docs/components/ai-tools-banner.tsx
+1 -1
@@ -64,7 +64,7 @@ export function AIToolsBanner() {
64 </div>
65
66 {/* Two-column: Skills + CLI */}
67 - <div className="flex flex-col gap-3 sm:flex-row sm: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>
docs/components/ask-ai-button.tsx
+5 -4
@@ -11,19 +11,20 @@ function getDecimal() {
11 return (window as typeof window & { Decimal?: DecimalAPI }).Decimal;
12 }
13
14 -let widgetOpen = false;
14 +function isWidgetVisible(): boolean {
15 + const sidebar = document.querySelector('.decimal-widget-sidebar');
16 + return sidebar?.classList.contains('open') ?? false;
17 +}
18
19 export function toggleDecimalWidget() {
20 const decimal = getDecimal();
21 if (!decimal) {
22 setTimeout(() => {
23 getDecimal()?.show();
21 - widgetOpen = true;
24 }, 500);
25 return;
26 }
25 - widgetOpen ? decimal.hide() : decimal.show();
26 - widgetOpen = !widgetOpen;
27 + isWidgetVisible() ? decimal.hide() : decimal.show();
28 }
29
30 export function detectMac(): boolean {