mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
don't apply custom background to previews
This commit is contained in:
parent
d68d32f96c
commit
ea8914cb85
@ -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;
|
||||
|
@ -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"];
|
||||
|
Loading…
Reference in New Issue
Block a user