@devries-cameron20 / composio-1 / commits / 3b713a2e5
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(docs): detect Decimal sidebar by iframe width, not launcher button

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 19, 2026 at 16:26 UTC 3b713a2e5c5ff7e85c7ebcbbe1b29a24bf32fd27
1 file changed +4 -3
docs/components/ask-ai-button.tsx
+4 -3
@@ -12,11 +12,12 @@ function getDecimal() {
12 }
13
14 function isDecimalVisible() {
15 - // Check if the push-sidebar panel is visible in the DOM
16 - const panel = document.querySelector('iframe[src*="decimal"], [class*="decimal" i]');
15 + // Look for the sidebar panel (iframe), not the small launcher button
16 + const panel = document.querySelector('iframe[src*="decimal"]');
17 if (!panel) return false;
18 const rect = panel.getBoundingClientRect();
19 - return rect.width > 0 && rect.height > 0;
19 + // The push-sidebar panel is wide (300px+); the launcher is small
20 + return rect.width > 200;
21 }
22
23 function toggleDecimalWidget() {