Repository navigation
Port mds's phone-width overflow, code-line number and widget-panel CSS - #172
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UnjXjkrhQphsQCetZzqVXu
|
The Generated by Claude Code |
|
Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ehq rule Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UnjXjkrhQphsQCetZzqVXu
|
The review's specificity finding is right: Quarto's built CSS has Generated by Claude Code |
|
Claude finished review — View run Confirmed: matches gh's reported Let's double check the remaining hunks (overflow, line-numbers) weren't touched by this round — they weren't (only the table-header selector block changed), so no need to re-review those; the prior round's non-blocking notes on them still stand. Review: #172 — Port mds's phone-width overflow, code-line number and widget-panel CSSWhat changed since the last review roundCommit .widget-panel table thead tr th,
div.observablehq .widget-panel table thead tr th,
.widget-panel div.observablehq table thead tr th {
background-color: transparent;
color: #222;
border-bottom: 2px solid #adb5bd;
}This directly addresses the previous round's finding (specificity I independently re-derived the specificity math rather than trusting the new comment at face value:
Since specificity compares the class-count digit before the type-count digit, I also checked the real-world DOM assumption, since the fix is only as good as its premise about nesting order. Quarto's shipped One caveat worth surfacing: none of the three The author's comment also notes the same original (unfixed) single-selector version is still present in FindingsNone blocking. The specificity defect raised in the prior round is resolved by this commit, verified independently against both the CSS specificity rules and the real DOM nesting order used in Non-blocking suggestions
All other hunks in this file (phone-width overflow at VerdictReady for merge — the specificity bug flagged in the previous round is fixed and independently verified; no new issues found in this round's diff. Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "21aa4038dd6237a57141021598807746de03e1e9",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "styles.css:274-282 now uses two higher-specificity selectors (0,2,5) that correctly outrank Quarto's div.observablehq table thead tr th rule (0,1,5), resolving the dark-mode header-background defect flagged previously.",
"holistic_assessment": "The fix matches mds's real .qmd DOM nesting order, closes the prior round's regression risk, though mds itself still lacks this fix, creating template drift worth a follow-up port upstream."
}Reviewed commit: 80cb056 |
2026-10-12 07:41 UTC |
Requested by Ezra · project thread
Before: A wide display equation, code span or URL inside a callout stretched the callout past the phone viewport, so the page scrolled sideways. Code blocks had no line numbers, and widget panels were unreadable in the dark theme.
After:
styles.csscarries mds's rules: callouts and display equations stay within the column (a too-wide equation scrolls inside its own box), tables scroll inside their own box on phones, every code block shows line numbers that are not copied, and widget panels keep light input boxes and dark ink under the dark theme.How: appends lines 238 to 349 of mds's
styles.css, with one change: the widget-panel table-header rule has two extra selectors (div.observablehq .widget-panel …and.widget-panel div.observablehq …), because mds's single selector has lower specificity than Quarto'sdiv.observablehq table thead tr thand loses to it. mds still has the lower-specificity version. In headless Chromium at 375px wide, the three sample chapters have no horizontal scroll and the line-number rule applies. The header fix is checked by specificity only, not on a rendered dark-mode table.Closes #144.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UnjXjkrhQphsQCetZzqVXu
Generated by Claude Code