Ensure slot renders in current preview.
This commit is contained in:
parent
133339483e
commit
a29dc4561e
|
@ -50,7 +50,7 @@
|
||||||
_children: [{
|
_children: [{
|
||||||
_component:"@budibase/standard-components/text",
|
_component:"@budibase/standard-components/text",
|
||||||
_styles: { "position": {}, "layout": {} },
|
_styles: { "position": {}, "layout": {} },
|
||||||
_id: "__screenslot__text",
|
_id: "__screenslot__text_2",
|
||||||
_code: "",
|
_code: "",
|
||||||
text: "content",
|
text: "content",
|
||||||
font: "",
|
font: "",
|
||||||
|
@ -81,11 +81,26 @@
|
||||||
srcdoc={`<html>
|
srcdoc={`<html>
|
||||||
<head>
|
<head>
|
||||||
${stylesheetLinks}
|
${stylesheetLinks}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
${styles || ''}
|
${styles || ''}
|
||||||
body, html {
|
body, html {
|
||||||
height: 100%!important;
|
height: 100%!important;
|
||||||
}
|
}
|
||||||
|
.lay-__screenslot__text {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
padding: 20px 0;
|
||||||
|
border: dashed 2px #ccc;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
color: #999;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
<\/style>
|
<\/style>
|
||||||
<\script>
|
<\script>
|
||||||
window["##BUDIBASE_FRONTEND_DEFINITION##"] = ${JSON.stringify(frontendDefinition)};
|
window["##BUDIBASE_FRONTEND_DEFINITION##"] = ${JSON.stringify(frontendDefinition)};
|
||||||
|
|
Loading…
Reference in New Issue