feat/enh: embed citation

This commit is contained in:
Timothy Jaeryang Baek committed 2025-09-28 22:15:47 -05:00
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"