Repository navigation
fix markdown render styles - #214
Conversation
…wn or code. markdown cells no longer have the `<code>` wrapper and fixes font issues from that
Passes `side-` attribute to all cells to apply text-primary styling
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdded side-specific cell class, enabled markdown-aware static diff rendering by passing an Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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.
🧹 Nitpick comments (1)
src/web/client/styles.ts (1)
519-525: Avoid duplicating output color selectors across two blocks.These selectors are already defined later in the file for
.cell-output-hostdescendants, so this introduces duplicate maintenance points for the same rule.♻️ Suggested cleanup
-.cell-output-host .jp-RenderedText, -.cell-output-host .jp-RenderedHTMLCommon, -.cell-output-host .jp-RenderedImage, -.cell-output-host .jp-RenderedSVG, -.cell-output-host .jp-RenderedLatex { - color: var(--text-primary); -} +/* Keep a single canonical `.cell-output-host` color block in one place */🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/web/client/styles.ts` around lines 519 - 525, The CSS block starting with selectors ".markdown-content code, .cell-output-host, .cell-output-host .jp-RenderedText, .cell-output-host .jp-RenderedHTMLCommon, .cell-output-host .jp-RenderedImage, .cell-output-host .jp-RenderedSVG, .cell-output-host .jp-RenderedLatex" duplicates selectors later in the file and should be consolidated; remove the duplicated .cell-output-host descendant selectors from this earlier block and keep the canonical rule set that appears later (or merge any unique declarations into the later .cell-output-host rules), ensuring ".markdown-content code" stays if it is unique and referencing the existing .cell-output-host rule names to locate where to merge.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/web/client/styles.ts`:
- Around line 519-525: The CSS block starting with selectors ".markdown-content
code, .cell-output-host, .cell-output-host .jp-RenderedText, .cell-output-host
.jp-RenderedHTMLCommon, .cell-output-host .jp-RenderedImage, .cell-output-host
.jp-RenderedSVG, .cell-output-host .jp-RenderedLatex" duplicates selectors later
in the file and should be consolidated; remove the duplicated .cell-output-host
descendant selectors from this earlier block and keep the canonical rule set
that appears later (or merge any unique declarations into the later
.cell-output-host rules), ensuring ".markdown-content code" stays if it is
unique and referencing the existing .cell-output-host rule names to locate where
to merge.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6e66ae9e-7475-4a32-81b6-0285c49fb370
📒 Files selected for processing (2)
src/web/client/CellContent.tsxsrc/web/client/styles.ts
<code>wrapper around them. This caused a few other stylistic errors.Summary by CodeRabbit
Bug Fixes
Style