mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
fix html frame clickable in preview mode
This commit is contained in:
@@ -58,11 +58,15 @@
|
||||
class="p-0 {css?.container?.class ?? ''}"
|
||||
title="sandbox"
|
||||
srcdoc={result
|
||||
? '<scr' + `ipt type="application/javascript" src="/tailwind.js"></script>` + result
|
||||
? '<base target="_parent" /><scr' +
|
||||
`ipt type="application/javascript" src="/tailwind.js"></script>` +
|
||||
result
|
||||
: ''}
|
||||
/>
|
||||
{/key}
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div on:click|stopPropagation class="absolute top-0 h-full w-full" />
|
||||
{#if $mode == 'dnd'}
|
||||
<div on:click|stopPropagation class="absolute top-0 h-full w-full" />
|
||||
{/if}
|
||||
</RunnableWrapper>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user