1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00

Tidy up builder preview iframe

This commit is contained in:
Andrew Kingston 2020-12-08 10:16:01 +00:00
parent 5130bdf3cd
commit fd207af6ad
2 changed files with 7 additions and 12 deletions

View file

@ -69,13 +69,11 @@
</script>
<div class="component-container">
{#if $currentAsset}
<iframe
style="height: 100%; width: 100%"
title="componentPreview"
bind:this={iframe}
srcdoc={iframeTemplate} />
{/if}
<iframe
style="height: 100%; width: 100%"
title="componentPreview"
bind:this={iframe}
srcdoc={iframeTemplate} />
</div>
<style>

View file

@ -1,12 +1,11 @@
<html>
<head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono">
<style>
body, html {
height: 100% !important;
font-family: Inter !important;
margin: 0px !important;
font-family: Inter, sans-serif !important;
margin: 0 !important;
}
*, *:before, *:after {
box-sizing: border-box;
@ -35,8 +34,6 @@
}
}
let selectedComponentStyle
// Ignore clicks
["click", "mousedown"].forEach(type => {
document.addEventListener(type, function(e) {