Skip to content

Commit 5d4c490

Browse files
committed
fix: 优化PC端文件预览样式
1 parent 21c2cc2 commit 5d4c490

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store-front-end",
3-
"version": "2.15.62",
3+
"version": "2.15.63",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

src/components/ArtifactPanel.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@
371371

372372
<style lang="scss">
373373
.artifact-panel {
374+
min-width: 350px;
374375
.include-unsupported-proxy-wrapper {
375376
flex-direction: row;
376377
display: flex;
@@ -394,6 +395,7 @@
394395
}
395396
}
396397
.nut-dialog {
398+
width: 100%;
397399
.nut-dialog__content {
398400
max-height: 72vh !important;
399401

src/views/FilePreview.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,39 @@ const copyUrl = async () => {
355355
overflow-x: hidden;
356356
overflow-y: auto;
357357
-webkit-overflow-scrolling: touch;
358+
display: flex;
359+
flex-direction: column;
360+
align-items: center;
358361
background: var(--background-color);
362+
.cmviewRef {
363+
width: 100%;
364+
}
365+
@media screen and (min-width: 768px) {
366+
.compare-page-header,
367+
.compare-page-body,
368+
.cmviewRef {
369+
width: 85%;
370+
max-width: 800px;
371+
}
372+
}
373+
374+
@media screen and (min-width: 900px) {
375+
.compare-page-header,
376+
.compare-page-body,
377+
.cmviewRef {
378+
width: 80%;
379+
max-width: 900px;
380+
}
381+
}
382+
383+
@media screen and (min-width: 1200px) {
384+
.compare-page-header,
385+
.compare-page-body,
386+
.cmviewRef {
387+
width: 75%;
388+
max-width: 1000px;
389+
}
390+
}
359391
}
360392
361393
.divider,

0 commit comments

Comments
 (0)