Skip to content

Commit 0dc3cae

Browse files
authored
Fix markdown preview classes in recovery (microsoft#187502)
Fix markdown preview classes For microsoft#187234 Got introduced through a bad PR change. Makes more sense to move this styling to the css file instead
1 parent 0f0e867 commit 0dc3cae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extensions/markdown-language-features/media/markdown.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ html, body {
99
padding: 0 26px;
1010
line-height: var(--markdown-line-height, 22px);
1111
word-wrap: break-word;
12+
overscroll-behavior-x: none;
1213
}
1314

1415
body {

extensions/markdown-language-features/src/preview/documentRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class MdDocumentRenderer {
103103
${this._getStyles(resourceProvider, sourceUri, config, imageInfo)}
104104
<base href="${resourceProvider.asWebviewUri(markdownDocument.uri)}">
105105
</head>
106-
<body class="vscode-body style="overscroll-behavior-x: none;" ${config.scrollBeyondLastLine ? 'scrollBeyondLastLine' : ''} ${config.wordWrap ? 'wordWrap' : ''} ${config.markEditorSelection ? 'showEditorSelection' : ''}">
106+
<body class="vscode-body ${config.scrollBeyondLastLine ? 'scrollBeyondLastLine' : ''} ${config.wordWrap ? 'wordWrap' : ''} ${config.markEditorSelection ? 'showEditorSelection' : ''}">
107107
${body.html}
108108
${this._getScripts(resourceProvider, nonce)}
109109
</body>

0 commit comments

Comments
 (0)