Fix markdown preview classes (#187501)

For #187234

Got introduced through a bad PR change. Makes more sense to move this styling to the css file instead
This commit is contained in:
Matt Bierner 2023-07-10 13:04:03 -07:00 committed by GitHub
parent 011ac2c103
commit 6aca75d9d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ html, body {
padding: 0 26px;
line-height: var(--markdown-line-height, 22px);
word-wrap: break-word;
overscroll-behavior-x: none;
}
body {

View file

@ -103,7 +103,7 @@ export class MdDocumentRenderer {
${this._getStyles(resourceProvider, sourceUri, config, imageInfo)}
<base href="${resourceProvider.asWebviewUri(markdownDocument.uri)}">
</head>
<body class="vscode-body style="overscroll-behavior-x: none;" ${config.scrollBeyondLastLine ? 'scrollBeyondLastLine' : ''} ${config.wordWrap ? 'wordWrap' : ''} ${config.markEditorSelection ? 'showEditorSelection' : ''}">
<body class="vscode-body ${config.scrollBeyondLastLine ? 'scrollBeyondLastLine' : ''} ${config.wordWrap ? 'wordWrap' : ''} ${config.markEditorSelection ? 'showEditorSelection' : ''}">
${body.html}
${this._getScripts(resourceProvider, nonce)}
</body>