Repository navigation
A divider stops at its box's sides in HTML - #54
Conversation
.ms-divider reached 1ch past each side of its box whatever the box's padding, so a divider in a box padded 0 ran past the border. It now reaches across --ms-pad, and each box sets --ms-pad itself so a nested box does not inherit its parent's. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018zYSohsQvDRVmjizSfxGWi
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your free on-demand review promotion remains active until October 9, 2026 at 6:00 PM UTC. WalkthroughThe CSS now sets ChangesDivider padding behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Dividers follow their box’s padding, including zero-padding and borderless boxes. No actionable merge-blocking risk was identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Comment |
Requested by Grave · project thread
Before: in a box padded 0 (
--ms-pad:0ch), every divider ran 1ch past the box's left and right borders. SharpMUSH's +help and +wiki screens draw their frame withpad: 0, so the rule under the namespace table and the "Available help" rule stuck out of the box in the portal.After: a divider reaches across its box's own padding and stops at the border. In a borderless box it does not reach out at all.
How:
.ms-dividerusesmargin: 0 calc(-1 * var(--ms-pad, 1ch))instead of a fixed-1ch, and.ms-box.ms-border-none > .ms-dividerhas no margin..ms-boxnow sets--ms-pad: 1chitself, so a box nested in one padded 0 gets its own 1ch rather than inheriting the parent's 0. TestDivider_InABoxWithoutPadding_ReachesOnlyToItsSides; the full suite passes (1102).🤖 Generated with Claude Code
https://claude.ai/code/session_018zYSohsQvDRVmjizSfxGWi
Generated by Claude Code
Summary by CodeRabbit