Skip to content

Conversation

@SoonIter
Copy link
Member

Summary

fix(theme): section-header margin-top

Related Issue

Checklist

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

Copilot AI review requested due to automatic review settings November 18, 2025 12:29
@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit cde0ee6
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/691c67f51a2ef40008f58983
😎 Deploy Preview https://deploy-preview-2782--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
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

This PR attempts to fix the margin-top styling for section headers in the sidebar by moving the reset logic from the SidebarSectionHeader component to the SidebarGroup component.

Key Changes

  • Removed the :first-of-type selector from .rp-sidebar-section-header that set margin-top: 0
  • Added a :first-child selector to .rp-sidebar-group to set margin-top: 0

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/theme/components/Sidebar/SidebarSectionHeader.scss Removes the first-of-type margin reset rule from section headers
packages/core/src/theme/components/Sidebar/SidebarGroup.scss Adds a first-child margin reset rule to sidebar groups

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

Rsdoctor Bundle Diff Analysis

📁 web

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

Metric Current Baseline Change
📊 Total Size 14.3 MB 14.3 MB 8.4 KB (0.1%)
📄 JavaScript 13.7 MB 13.7 MB 8.4 KB (0.1%)
🎨 CSS 109.4 KB 109.4 KB 40.0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 496.7 KB 496.7 KB 0 B (0.0%)

📦 Download Diff Report: web Bundle Diff

Generated by Rsdoctor GitHub Action

@SoonIter SoonIter changed the title fix(theme): section-header margin-top fix(theme): section-header margin-top wrong selector Nov 19, 2025
@SoonIter SoonIter enabled auto-merge (squash) November 19, 2025 03:54
@SoonIter SoonIter merged commit 35491aa into main Nov 19, 2025
10 checks passed
@SoonIter SoonIter deleted the syt/fix-header branch November 19, 2025 03:57
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