Skip to content

Commit c06299a

Browse files
rehmsenrebornix
andauthored
Make regular text in markdown comments wrap in notebook editors. (microsoft#224484)
Fixes microsoft#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]>
1 parent 17de21a commit c06299a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/notebook/browser/media/notebook.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@
353353

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

358360
.cell-comment-container.review-widget > .head {

0 commit comments

Comments
 (0)