Skip to content

style(theme/sidebar): remove redundant first-child margin-top reset#3233

Merged
SoonIter merged 1 commit intomainfrom
syt-vibe-kanban/647c-rp-sidebar-item
Mar 16, 2026
Merged

style(theme/sidebar): remove redundant first-child margin-top reset#3233
SoonIter merged 1 commit intomainfrom
syt-vibe-kanban/647c-rp-sidebar-item

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Mar 16, 2026

Summary

before

image

after

image

Related Issue

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

AI Summary

Removed the redundant &:first-child { margin-top: 0; } rule from .rp-sidebar-item in SidebarItem.scss.

The .rp-sidebar-item has a margin-top: 2px applied to all items for spacing. The :first-child override to margin-top: 0 is unnecessary because the first sidebar item's top margin does not cause any visual issue — the parent container already handles its own padding/spacing. Removing this rule simplifies the stylesheet without affecting layout.

This PR was written using Vibe Kanban


Copilot AI review requested due to automatic review settings March 16, 2026 11:10
@SoonIter SoonIter changed the title .rp-sidebar-item:first-child 这个 margin-top 删掉 (vibe-kanban) style(sidebar): remove redundant first-child margin-top reset Mar 16, 2026
Copy link
Copy Markdown
Contributor

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

Removes the special-case styling that eliminated the top spacing on the first sidebar item, so all .rp-sidebar-item entries follow the same vertical spacing rules.

Changes:

  • Deleted the &:first-child { margin-top: 0; } override from SidebarItem.scss.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SoonIter SoonIter changed the title style(sidebar): remove redundant first-child margin-top reset style(theme/sidebar): remove redundant first-child margin-top reset Mar 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 3 projects in monorepo, 1 project with changes.

📊 Quick Summary
Project Total Size Change
node 12.4 MB 0
web 16.1 MB -42.0 B (-0.0%)
node_md 1.6 MB 0
📋 Detailed Reports (Click to expand)

📁 web

Path: website/doc_build/diff-rsdoctor/web/rsdoctor-data.json

📌 Baseline Commit: 0ea1fdd4ed | PR: #3232

Metric Current Baseline Change
📊 Total Size 16.1 MB 16.1 MB -42.0 B (-0.0%)
📄 JavaScript 15.9 MB 15.9 MB 0
🎨 CSS 120.3 KB 120.3 KB -42.0 B (-0.0%)
🌐 HTML 0 B 0 B 0
📁 Other Assets 166.2 KB 166.2 KB 0

📦 Download Diff Report: web Bundle Diff

Generated by Rsdoctor GitHub Action

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying rspress-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 73275bf
Status: ✅  Deploy successful!
Preview URL: https://58c463f9.rspress-v2.pages.dev
Branch Preview URL: https://syt-vibe-kanban-647c-rp-side.rspress-v2.pages.dev

View logs

@SoonIter SoonIter requested a review from Timeless0911 March 16, 2026 11:27
@SoonIter SoonIter enabled auto-merge (squash) March 16, 2026 11:27
@SoonIter SoonIter merged commit 229ee97 into main Mar 16, 2026
13 checks passed
@SoonIter SoonIter deleted the syt-vibe-kanban/647c-rp-sidebar-item branch March 16, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants