feat/enh: embed citation
This commit is contained in:
1 parent
118549caf3
commit
f58fc753e3
9 files changed
+96
-12
No files matched your search
@@ -6,6 +6,8 @@
|
||||
export let title = 'Embedded Content';
|
||||
export let initialHeight: number | null = null; // initial height in px, null = auto
|
||||
|
||||
export let iframeClassName = 'w-full rounded-2xl';
|
||||
|
||||
export let args = null;
|
||||
|
||||
export let allowScripts = true;
|
||||
@@ -174,7 +176,7 @@ window.Chart = parent.Chart; // Chart previously assigned on parent
|
||||
bind:this={iframe}
|
||||
srcdoc={iframeDoc}
|
||||
{title}
|
||||
class="w-full rounded-2xl"
|
||||
class={iframeClassName}
|
||||
style={`${initialHeight ? `height:${initialHeight}px;` : ''}`}
|
||||
width="100%"
|
||||
frameborder="0"
|
||||
@@ -187,7 +189,7 @@ window.Chart = parent.Chart; // Chart previously assigned on parent
|
||||
bind:this={iframe}
|
||||
src={iframeSrc}
|
||||
{title}
|
||||
class="w-full rounded-2xl"
|
||||
class={iframeClassName}
|
||||
style={`${initialHeight ? `height:${initialHeight}px;` : ''}`}
|
||||
width="100%"
|
||||
frameborder="0"
|
||||
|
||||
Reference in new issue
Block a user