Skip to content

Commit

Permalink
Make regular text in markdown comments wrap in notebook editors. (#22…
Browse files Browse the repository at this point in the history
…4484)

Fixes #224483.

Without this, the comments inherit nowrap from monaco-list. I decided to fix it at this level because only in the notebook editor the comments seem to be ancestors of a monaco-list. I picked "initial" to indicate we are not actively trying to set anything, we are just trying to go back to normal, as the markdown renderer expects it.

Co-authored-by: Peng Lyu <[email protected]>
  • Loading branch information
rehmsen and rebornix committed Aug 26, 2024
1 parent 17de21a commit c06299a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/contrib/notebook/browser/media/notebook.css
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@

.cell-comment-container.review-widget {
border-left: 1px solid var(--vscode-peekView-border); border-right: 1px solid var(--vscode-peekView-border);
/* Restore text-wrap to default value to avoid inheriting nowrap from monaco-list. */
text-wrap: initial;
}

.cell-comment-container.review-widget > .head {
Expand Down

0 comments on commit c06299a

Please sign in to comment.