Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix: Ask AI widget toggle and layout stability
Sushmitha Mallesh28d643916dab
diff --git a/docs/app/global.css b/docs/app/global.cssindex 47f9490ea..3237d5005 100644--- a/docs/app/global.css+++ b/docs/app/global.css@@ -554,6 +554,17 @@ p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {}}+/* ==========================================================================+ Decimal AI Widget – Push-Sidebar Transition+ The widget sets body.style.maxWidth inline when opening. Smooth it out+ and prevent horizontal overflow while the sidebar animates.+ ========================================================================== */++body {+ overflow-x: hidden;+ transition: max-width 0.3s ease;+}+@layer base {* {@apply border-border outline-ring/50;diff --git a/docs/components/ai-tools-banner.tsx b/docs/components/ai-tools-banner.tsxindex f1d221e64..29ac2a8ab 100644--- a/docs/components/ai-tools-banner.tsx+++ b/docs/components/ai-tools-banner.tsx@@ -64,7 +64,7 @@ export function AIToolsBanner() {</div>{/* Two-column: Skills + CLI */}- <div className="flex flex-col gap-3 sm:flex-row sm:gap-4">+ <div className="flex flex-col gap-3 md:flex-row md:gap-4">{/* Skills */}<div className="flex flex-1 flex-col gap-1"><span className="text-[11px] font-semibold uppercase tracking-[0.08em] text-[var(--composio-orange)]">Skills</span>diff --git a/docs/components/ask-ai-button.tsx b/docs/components/ask-ai-button.tsxindex 6a3a060ec..0ad986014 100644--- a/docs/components/ask-ai-button.tsx+++ b/docs/components/ask-ai-button.tsx@@ -11,19 +11,20 @@ function getDecimal() {return (window as typeof window & { Decimal?: DecimalAPI }).Decimal;}-let widgetOpen = false;+function isWidgetVisible(): boolean {+ const sidebar = document.querySelector('.decimal-widget-sidebar');+ return sidebar?.classList.contains('open') ?? false;+}export function toggleDecimalWidget() {const decimal = getDecimal();if (!decimal) {setTimeout(() => {getDecimal()?.show();- widgetOpen = true;}, 500);return;}- widgetOpen ? decimal.hide() : decimal.show();- widgetOpen = !widgetOpen;+ isWidgetVisible() ? decimal.hide() : decimal.show();}export function detectMac(): boolean {