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(docs): detect Decimal sidebar by iframe width, not launcher button
Sushmithamallesh3b713a2e5c5f
diff --git a/docs/components/ask-ai-button.tsx b/docs/components/ask-ai-button.tsxindex fcf822715..3fcdcba7d 100644--- a/docs/components/ask-ai-button.tsx+++ b/docs/components/ask-ai-button.tsx@@ -12,11 +12,12 @@ function getDecimal() {}function isDecimalVisible() {- // Check if the push-sidebar panel is visible in the DOM- const panel = document.querySelector('iframe[src*="decimal"], [class*="decimal" i]');+ // Look for the sidebar panel (iframe), not the small launcher button+ const panel = document.querySelector('iframe[src*="decimal"]');if (!panel) return false;const rect = panel.getBoundingClientRect();- return rect.width > 0 && rect.height > 0;+ // The push-sidebar panel is wide (300px+); the launcher is small+ return rect.width > 200;}function toggleDecimalWidget() {