Skip to content

Commit de3b846

Browse files
authored
Remove UI component dependency from REST debugging Webview (#1702)
1 parent 8b7740e commit de3b846

File tree

6 files changed

+363
-2881
lines changed

6 files changed

+363
-2881
lines changed

src/commands/documaticPreviewPanel.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as vscode from "vscode";
2-
import { classNameRegex } from "../utils";
2+
import { classNameRegex, webviewCSS } from "../utils";
33
import { clsLangId, iscIcon } from "../extension";
44

55
/**
@@ -120,17 +120,7 @@ export class DocumaticPreviewPanel {
120120
<head>
121121
<meta charset="UTF-8">
122122
<meta name="viewport" content="width=device-width, initial-scale=1.0">
123-
<style>
124-
div.code-block {
125-
background-color: var(--vscode-textCodeBlock-background);
126-
border-radius: 5px;
127-
font-family: monospace;
128-
white-space: pre;
129-
padding: 10px;
130-
padding-top: initial;
131-
overflow-x: scroll;
132-
}
133-
</style>
123+
<style>${webviewCSS}</style>
134124
</head>
135125
<body>
136126
<h2 id="header"></h2>

0 commit comments

Comments
 (0)