Skip to content

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): hide nav indicator on mobile to avoid layout issues

Sushmithamalleshaa7b85efbbb4
diff --git a/docs/app/global.css b/docs/app/global.css
index 147320af6..c176e4b1e 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -387,26 +387,32 @@ textarea:focus-visible {
outline-offset: 2px;
}
-/* Active nav link - orange indicator overlaps the navbar border */
+/* Active nav link - orange color on all screens */
#nd-nav nav > a[data-active="true"] {
color: var(--composio-orange);
- position: relative;
-}
-
-#nd-nav nav > a[data-active="true"]::after {
- content: '';
- position: absolute;
- bottom: -0.5rem; /* Extend down to overlap navbar border */
- left: 0;
- right: 0;
- height: 2px;
- background: var(--composio-orange);
}
#nd-nav nav > a[data-active="true"]:hover {
background: transparent;
}
+/* Active nav indicator - only on desktop where nav is horizontal */
+@media (min-width: 768px) {
+ #nd-nav nav > a[data-active="true"] {
+ position: relative;
+ }
+
+ #nd-nav nav > a[data-active="true"]::after {
+ content: '';
+ position: absolute;
+ bottom: -0.5rem; /* Extend down to overlap navbar border */
+ left: 0;
+ right: 0;
+ height: 2px;
+ background: var(--composio-orange);
+ }
+}
+
/* Right side items - consistent gaps */
#nd-nav > div:last-child {
gap: 0.5rem;