wysiwyg fallback radius

This commit is contained in:
Yuri Kuznetsov
2022-08-28 20:47:43 +03:00
parent 693d952910
commit 58cd736ab9
3 changed files with 9 additions and 1 deletions
@@ -1,6 +1,6 @@
{{#unless isPlain}}
{{#if useIframe}}
<iframe frameborder="0" style="width: 100%; overflow-x: hidden; overflow-y: hidden;" class="hidden"></iframe>
<iframe frameborder="0" style="width: 100%; overflow-x: hidden; overflow-y: hidden;" class="hidden wysiwyg"></iframe>
{{else}}
<div class="html-container">{{{value}}}</div>
{{/if}}
+4
View File
@@ -307,6 +307,10 @@ define('views/fields/wysiwyg', ['views/fields/text', 'lib!Summernote'], function
let useFallbackStylesheet = this.getThemeManager().getParam('isDark') && this.htmlHasColors(body);
useFallbackStylesheet ?
$iframe.addClass('fallback') :
$iframe.removeClass('fallback');
var linkElement = iframeElement.contentWindow.document.createElement('link');
linkElement.type = 'text/css';
+4
View File
@@ -3313,6 +3313,10 @@ a.close:hover {
scrollbar-width: thin;
}
iframe.wysiwyg.fallback {
border-radius: var(--border-radius);
}
* {
scrollbar-width: auto;
scrollbar-color: var(--scroll-thumb-bg) var(--scroll-bg);