Skip to content

docs: polish nav title alignment and sidebar density#10

Merged
BunsDev merged 1 commit into
mainfrom
docs/sidebar-polish
May 24, 2026
Merged

docs: polish nav title alignment and sidebar density#10
BunsDev merged 1 commit into
mainfrom
docs/sidebar-polish

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented May 24, 2026

Summary

Three small chrome polish tweaks on top of #9:

  • Nav title vertical nudge. Shifts the Coven docs wordmark + sparkle down 4px (transform: translateY(4px) in app/layout.config.tsx) so it lines up with the macOS traffic-lights row in browsers that hide the URL bar.
  • Single-row dropdown descriptions (actually wired up this time). The existing single-row CSS targeted aside button[class*="ps-2"][class*="pe-4"] / [class*="py-1.5"] / text-xs, but upstream Fumadocs actually renders the trigger with rounded-lg p-2 border bg-fd-secondary/50 and the popover items with rounded-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 like Codex and Claude Code Adapters truncate with instead of wrapping.
  • Sidebar compactness. Dropped vertical padding on sidebar links and folder triggers from 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).
  • Local dev server (npm run dev) renders the changes; hot reload picks up CSS without errors.
  • Vercel preview build green.
  • Visual check: open the section dropdown, confirm descriptions are single-row.
  • Visual check: sidebar feels tighter without being cramped.
  • Visual check: nav title sits where you wanted it.

🤖 Generated with Claude Code

- 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>
Copilot AI review requested due to automatic review settings May 24, 2026 18:07
@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coven-docs Ready Ready Preview May 24, 2026 6:08pm

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread app/globals.css
* 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. */
@BunsDev BunsDev merged commit 49b513b into main May 24, 2026
2 checks passed
@BunsDev BunsDev deleted the docs/sidebar-polish branch May 24, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants