don't apply custom background to previews

This commit is contained in:
sawka 2024-07-30 21:59:20 -07:00
parent d68d32f96c
commit ea8914cb85
2 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,10 @@
}
}
&.block-preview.block-frame-default .block-frame-default-inner .block-frame-default-header {
background-color: rgba(0, 0, 0, 0.7);
}
&.block-frame-default {
position: relative;
padding: 2px;

View File

@ -383,7 +383,7 @@ const BlockFrame_Default_Component = ({
}
const innerStyle: React.CSSProperties = {};
if (customBg?.bg != null) {
if (!preview && customBg?.bg != null) {
innerStyle.background = customBg.bg;
if (customBg["bg:opacity"] != null) {
innerStyle.opacity = customBg["bg:opacity"];