fix: html shape issues

This commit is contained in:
Peng Xiao
2022-08-18 16:32:16 +08:00
parent 01729f285b
commit 7ea559894f
2 changed files with 9 additions and 9 deletions

View File

@@ -79,19 +79,14 @@ export class HTMLShape extends TLBoxShape<HTMLShapeProps> {
onPointerUp={stop}
className="tl-html-container"
style={{
width: '100%',
height: '100%',
pointerEvents: isEditing ? 'all' : 'none',
userSelect: 'all',
position: 'relative',
margin: 0,
overflow: isEditing ? 'auto' : 'hidden',
}}
>
<div
ref={anchorRef}
className="tl-html-anchor"
dangerouslySetInnerHTML={{ __html: html }}
dangerouslySetInnerHTML={{ __html: html.trim() }}
/>
</div>
</HTMLContainer>

View File

@@ -580,9 +580,14 @@
flex-grow: 0;
}
.tl-html-container > iframe {
@apply h-full w-full !important;
margin: 0;
.tl-html-container {
@apply h-full w-full m-0 relative flex;
user-select: text;
> iframe {
@apply h-full w-full !important;
margin: 0;
}
}
.tl-logseq-cp-container {