UI: Fix markdown widget css

This commit is contained in:
Igor Kulikov 2023-03-06 18:21:46 +02:00
parent 8187a367de
commit c9ae2767ff

View File

@ -80,7 +80,7 @@ export class MarkdownWidgetComponent extends PageComponent implements OnInit {
const cssParser = new cssjs();
cssParser.testMode = false;
this.markdownClass += '-' + hashCode(cssString);
cssParser.cssPreviewNamespace = this.markdownClass;
cssParser.cssPreviewNamespace = 'tb-default .' + this.markdownClass;
cssParser.createStyleElement(this.markdownClass, cssString);
}
const pageSize = isDefinedAndNotNull(this.ctx.widgetConfig.pageSize) &&