Skip to content

Commit 51896d4

Browse files
committed
fix: enhance Playground.vue components in SuperEditor and SuperDoc
1 parent 75a9d23 commit 51896d4

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/super-editor/src/dev/components/Playground.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,11 @@ onMounted(async () => {
196196
display: flex;
197197
justify-content: center;
198198
}
199+
199200
.page-spacer:nth-child(odd) {
200201
background-color: #aa000055;
201202
}
203+
202204
.dev-app {
203205
--header-height: 154px;
204206
--toolbar-height: 39px;
@@ -225,9 +227,11 @@ onMounted(async () => {
225227
.dev-app__header-side {
226228
display: flex;
227229
}
230+
228231
.dev-app__header-side--left {
229232
flex-direction: column;
230233
}
234+
231235
.dev-app__header-side--right {
232236
align-items: flex-end;
233237
}

packages/superdoc/src/dev/components/Playground.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ onMounted(async () => {
206206
</div>
207207
<div class="dev-app__header-upload">
208208
Upload docx, html or markdown
209-
<BasicUpload @file-change="handleNewFile" />
209+
<BasicUpload @file-change="handleNewFile" accept=".docx,.html,.md" />
210210
</div>
211211
</div>
212212
<div class="dev-app__header-side dev-app__header-side--right">
@@ -240,6 +240,7 @@ onMounted(async () => {
240240
position: relative;
241241
z-index: 1;
242242
}
243+
243244
.comments-panel {
244245
width: 320px;
245246
}
@@ -258,13 +259,15 @@ onMounted(async () => {
258259
display: flex;
259260
flex-direction: column;
260261
}
262+
261263
.comments-panel {
262264
position: absolute;
263265
right: 0;
264266
height: 100%;
265267
background-color: #fafafa;
266268
z-index: 100;
267269
}
270+
268271
.dev-app {
269272
--header-height: 154px;
270273
--toolbar-height: 39px;
@@ -291,9 +294,11 @@ onMounted(async () => {
291294
.dev-app__header-side {
292295
display: flex;
293296
}
297+
294298
.dev-app__header-side--left {
295299
flex-direction: column;
296300
}
301+
297302
.dev-app__header-side--right {
298303
align-items: flex-end;
299304
}

0 commit comments

Comments
 (0)