docs: polish nav title alignment and sidebar density#10
Merged
Conversation
- Nudge the nav title (sparkle + "Coven docs") down 4px via transform: translateY so it sits at the same vertical level as the macOS traffic-lights row in browsers that hide the URL bar. - Fix the Fumadocs root-section selector single-row CSS: the previous selectors (`ps-2 pe-4`, `py-1.5`, `text-xs`) never matched the upstream class names. Updated to target `rounded-lg p-2 border bg-fd-secondary/50` (trigger) and `rounded-lg p-1.5` (popover items) with descriptions in `text-[0.8125rem]`. Dropdown descriptions like "Codex and Claude Code Adapters" now truncate to a single row. - Add sidebar compactness: drop vertical padding on sidebar links and folder triggers from p-2 (8px) to py-1 (4px) while preserving the 8px horizontal padding, for a denser table-of-contents read. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Polishes the Fumadocs UI chrome by tweaking the nav title alignment, ensuring root-section dropdown descriptions truncate to a single line, and tightening sidebar vertical density for a more compact table-of-contents feel.
Changes:
- Nudges the nav title down via
transform: translateY(4px)to improve vertical alignment. - Updates global CSS selectors to correctly target current Fumadocs root-section dropdown markup so descriptions truncate (ellipsis) instead of wrapping.
- Reduces vertical padding for sidebar links/folder triggers while preserving horizontal padding.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| app/layout.config.tsx | Adjusts nav title styling for better vertical alignment. |
| app/globals.css | Refines Fumadocs dropdown truncation selectors and tightens sidebar vertical padding. |
| * Fumadocs renders the trigger button with `rounded-lg p-2 border bg-fd-secondary/50` | ||
| * and the popover panel items (portaled to body) with `rounded-lg p-1.5`. | ||
| * The description sits in a `<p class="text-[0.8125rem] text-fd-muted-foreground">` | ||
| * — NOT `text-xs`, so the older selectors below never matched. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three small chrome polish tweaks on top of #9:
Coven docswordmark + sparkle down 4px (transform: translateY(4px)inapp/layout.config.tsx) so it lines up with the macOS traffic-lights row in browsers that hide the URL bar.aside button[class*="ps-2"][class*="pe-4"]/[class*="py-1.5"]/text-xs, but upstream Fumadocs actually renders the trigger withrounded-lg p-2 border bg-fd-secondary/50and the popover items withrounded-lg p-1.5, and the description sits in a<p class="text-[0.8125rem] text-fd-muted-foreground">. None of the old selectors matched. Rewrote them to target the real class shapes so descriptions likeCodex and Claude Code Adapterstruncate with…instead of wrapping.p-2(8px) →py-1(4px), preserving 8px horizontal padding. Reads as a denser ToC without feeling cramped.Test plan
git log -1 --show-signature— commit is signed (ED25519).npm run dev) renders the changes; hot reload picks up CSS without errors.🤖 Generated with Claude Code