Skip to content

Commit 78566df

Browse files
committed
fix: remove hardcoded styling for default layout
1 parent bd89398 commit 78566df

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

demo/App.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
<h2>Use the requires prop to make libraries and packages available in the browser</h2>
1414
<VueLive :code="codeChicago" :layout="CustomLayout" :requires="chicagoRequires"/>
1515
<h2>Default Layout</h2>
16-
<VueLive :code="`<input type='button' value='I am Groot'>`"/>
17-
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
16+
<div style="width:950px; width:950px; max-width:95vw; margin:20px auto;">
17+
<VueLive :code="`<input type='button' value='I am Groot'>`"/>
18+
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
19+
</div>
1820
</main>
1921
</template>
2022
<script>
2123
import VueLive from "../src/VueLive";
2224
import CustomLayout from "./CustomLayout";
2325
import DatePicker from "vuejs-datepicker";
24-
// eslint-disable-next-line import/no-webpack-loader-syntax
2526
import codeSfc from "!!raw-loader!./assets/Button.vue";
2627
import codeJs from "!!raw-loader!./assets/input.js";
2728
import codeTemplate from "!!raw-loader!./assets/PureTemplate.html";

src/VueLiveDefaultLayout.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<template functional>
2-
<div
3-
class="vue-live-container"
4-
style="display:flex; width:950px; max-width:95vw; margin:20px auto;"
5-
>
2+
<div class="vue-live-container" style="display:flex; ">
63
<div style="width:50%;">
74
<slot name="editor"></slot>
85
</div>
9-
<div style="background-color:white;width:50%;padding:20px;">
6+
<div style="background-color:white;width:50%;">
107
<slot name="preview"></slot>
118
</div>
129
</div>

0 commit comments

Comments
 (0)