chore: svelte5 bump
This commit is contained in:
@@ -79,7 +79,12 @@
|
||||
title="Embedded content"
|
||||
frameborder="0"
|
||||
sandbox
|
||||
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
||||
on:load={(e) => {
|
||||
try {
|
||||
e.currentTarget.style.height =
|
||||
e.currentTarget.contentWindow.document.body.scrollHeight + 20 + 'px';
|
||||
} catch {}
|
||||
}}
|
||||
></iframe>
|
||||
{:else}
|
||||
{token.text}
|
||||
@@ -116,7 +121,12 @@
|
||||
referrerpolicy="strict-origin-when-cross-origin"
|
||||
allowfullscreen
|
||||
width="100%"
|
||||
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
||||
on:load={(e) => {
|
||||
try {
|
||||
e.currentTarget.style.height =
|
||||
e.currentTarget.contentWindow.document.body.scrollHeight + 20 + 'px';
|
||||
} catch {}
|
||||
}}
|
||||
></iframe>
|
||||
{/if}
|
||||
{:else if token.text.includes(`<source_id`)}
|
||||
|
||||
@@ -59,7 +59,12 @@
|
||||
title={token.fileId}
|
||||
width="100%"
|
||||
frameborder="0"
|
||||
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
||||
on:load={(e) => {
|
||||
try {
|
||||
e.currentTarget.style.height =
|
||||
e.currentTarget.contentWindow.document.body.scrollHeight + 20 + 'px';
|
||||
} catch {}
|
||||
}}
|
||||
></iframe>
|
||||
{:else if token.type === 'mention'}
|
||||
<MentionToken {token} />
|
||||
|
||||
@@ -321,7 +321,12 @@
|
||||
title={token.fileId}
|
||||
width="100%"
|
||||
frameborder="0"
|
||||
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
|
||||
on:load={(e) => {
|
||||
try {
|
||||
e.currentTarget.style.height =
|
||||
e.currentTarget.contentWindow.document.body.scrollHeight + 20 + 'px';
|
||||
} catch {}
|
||||
}}
|
||||
></iframe>
|
||||
{:else if token.type === 'paragraph'}
|
||||
<p dir="auto">
|
||||
|
||||
Reference in New Issue
Block a user