@@ -146,7 +146,12 @@ function Blocks(props: PropsWithChildren<BlockProps>) {
|
|||||||
width: props.data.width,
|
width: props.data.width,
|
||||||
height: props.data.height,
|
height: props.data.height,
|
||||||
zIndex: props.data.zIndex,
|
zIndex: props.data.zIndex,
|
||||||
display: props.data.canSee ? props.data.display : 'none',
|
display:
|
||||||
|
typeof props.data.canSee === 'boolean'
|
||||||
|
? props.data.canSee
|
||||||
|
? props.data.display
|
||||||
|
: 'none'
|
||||||
|
: props.data.display,
|
||||||
opacity: props.iframe ? 0 : 1,
|
opacity: props.iframe ? 0 : 1,
|
||||||
transform: `rotate(${props.data.rotate.value}deg)`,
|
transform: `rotate(${props.data.rotate.value}deg)`,
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user