2020-06-11 21:18:59 +02:00
|
|
|
<script>
|
2020-11-18 20:18:18 +01:00
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
2020-11-20 10:50:10 +01:00
|
|
|
const { styleable } = getContext("sdk")
|
2020-11-24 12:02:10 +01:00
|
|
|
const component = getContext("component")
|
2020-11-17 13:08:24 +01:00
|
|
|
|
2020-06-11 21:18:59 +02:00
|
|
|
export let embed
|
|
|
|
</script>
|
|
|
|
|
2020-11-24 12:02:10 +01:00
|
|
|
<div use:styleable={$component.styles}>
|
2020-11-17 13:08:24 +01:00
|
|
|
{@html embed}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
div :global(> *) {
|
2020-11-19 19:39:22 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
2020-11-17 13:08:24 +01:00
|
|
|
}
|
|
|
|
</style>
|