mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
don't apply custom background to previews
This commit is contained in:
@@ -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 {
|
&.block-frame-default {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ const BlockFrame_Default_Component = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const innerStyle: React.CSSProperties = {};
|
const innerStyle: React.CSSProperties = {};
|
||||||
if (customBg?.bg != null) {
|
if (!preview && customBg?.bg != null) {
|
||||||
innerStyle.background = customBg.bg;
|
innerStyle.background = customBg.bg;
|
||||||
if (customBg["bg:opacity"] != null) {
|
if (customBg["bg:opacity"] != null) {
|
||||||
innerStyle.opacity = customBg["bg:opacity"];
|
innerStyle.opacity = customBg["bg:opacity"];
|
||||||
|
|||||||
Reference in New Issue
Block a user