feat: modify the style of the prompt component#97
Conversation
WalkthroughVitePress theme stylesheet updated to modify custom block layout behavior. Flexbox display removed from custom blocks, pseudo-element changed from inline-block to float positioning, and left margins added to ordered lists and block content within custom block variants. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.vitepress/theme/style.css:
- Around line 500-508: The rules for list indentation double-apply because both
the selectors ".vp-doc .custom-block.info ol, .vp-doc .custom-block.warning ol,
.vp-doc .custom-block.danger ol, .vp-doc .custom-block.tip ol" and ".vp-doc
.custom-block .custom-block-content" add margin-left; remove the explicit ol
selector rules and keep the 32px margin only on ".vp-doc .custom-block
.custom-block-content", then add a reset for lists inside that container (reset
ol and ul margin-left to 0 inside ".vp-doc .custom-block .custom-block-content")
so nested lists do not accumulate indentation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 7978c001-4d3d-4feb-b7b6-238c2cc7e9ea
📒 Files selected for processing (1)
.vitepress/theme/style.css
Summary by CodeRabbit