More tweak to widget rendering

This commit is contained in:
Zef Hemel
2023-10-29 12:26:57 +01:00
parent 7e9a3f7b6a
commit af3e4737ba
4 changed files with 9 additions and 5 deletions
+6 -1
View File
@@ -10,6 +10,12 @@ body {
display: initial !important;
}
#sb-root {
display: block !important;
width: initial !important;
height: initial !important;
}
#sb-editor {
flex: initial !important;
height: initial !important;
@@ -21,7 +27,6 @@ body {
body {
font-family: var(--editor-font);
background-color: var(--root-background-color);
color: var(--root-color);
}
+1 -2
View File
@@ -27,8 +27,7 @@ export async function prepareJS(originalMarkdown: string) {
`;
}
export async function wrapHTML( html: string
): Promise<string> {
export async function wrapHTML(html: string): Promise<string> {
const css = await asset.readAsset("assets/markdown_widget.css");
return `