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
Wrap the active nav indicator ::after pseudo-element in a media query for desktop only (min-width: 768px). On mobile, Fumadocs uses a dropdown pattern where horizontal layout assumptions don't apply. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 19, 2026 at 01:52 UTC
aa7b85efbbb4dd196b85613af9b13062f3159ab1
1 file changed
+18
-12
docs/app/global.css
+18
-12
@@ -387,26 +387,32 @@ textarea:focus-visible {
387
outline-offset: 2px;
388
}
389
390
-/* Active nav link - orange indicator overlaps the navbar border */
390
+/* Active nav link - orange color on all screens */
391
#nd-nav nav > a[data-active="true"] {
392
color: var(--composio-orange);
393
- position: relative;
394
-}
395
-
396
-#nd-nav nav > a[data-active="true"]::after {
397
- content: '';
398
- position: absolute;
399
- bottom: -0.5rem; /* Extend down to overlap navbar border */
400
- left: 0;
401
- right: 0;
402
- height: 2px;
403
- background: var(--composio-orange);
393
}
394
395
#nd-nav nav > a[data-active="true"]:hover {
396
background: transparent;
397
}
398
399
+/* Active nav indicator - only on desktop where nav is horizontal */
400
+@media (min-width: 768px) {
401
+ #nd-nav nav > a[data-active="true"] {
402
+ position: relative;
403
+ }
404
+
405
+ #nd-nav nav > a[data-active="true"]::after {
406
+ content: '';
407
+ position: absolute;
408
+ bottom: -0.5rem; /* Extend down to overlap navbar border */
409
+ left: 0;
410
+ right: 0;
411
+ height: 2px;
412
+ background: var(--composio-orange);
413
+ }
414
+}
415
+
416
/* Right side items - consistent gaps */
417
#nd-nav > div:last-child {
418
gap: 0.5rem;