Skip to content

Commit 8902e17

Browse files
committed
style: 简单优化PC/平板端布局样式
1 parent f3093cf commit 8902e17

File tree

6 files changed

+24
-9
lines changed

6 files changed

+24
-9
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.53",
3+
"version": "2.15.54",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,10 @@ function checkNeedConfiguration() {
419419
// overflow: hidden;
420420
flex: 1;
421421
display: flex;
422+
align-items: center;
422423
flex-direction: column;
423424
overflow: auto;
425+
width: 100%;
424426
}
425427
426428
overflow-y: auto;

src/layout/AppLayout.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@
4141
flex: 1;
4242
padding: 56px 0 v-bind(height) 0;
4343
overflow: auto;
44+
width: 100%;
45+
@media screen and (min-width: 600px) {
46+
max-width: 85%;
47+
}
48+
@media screen and (min-width: 768px) {
49+
max-width: 630px;
50+
}
51+
@media screen and (min-width: 900px) {
52+
max-width: 700px;
53+
}
54+
@media screen and (min-width: 1200px) {
55+
max-width: 900px;
56+
}
4457
}
4558
4659
</style>

src/views/FileEditor.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ const handleEditGlobalClick = () => {
934934
display: flex;
935935
justify-content: space-between;
936936
bottom: 0;
937+
left: 0;
937938
width: 100%;
938939
padding: 8px var(--safe-area-side) calc(v-bind("padding") + 8px) var(--safe-area-side);
939940
z-index: 20;
@@ -947,19 +948,18 @@ const handleEditGlobalClick = () => {
947948
display: flex;
948949
justify-content: center;
949950
align-items: center;
950-
951951
svg {
952952
margin-right: 4px;
953953
}
954954
}
955955
956-
// .compare-btn {
957-
// background: transparent;
958-
// width: 36%;
959-
// }
956+
.compare-btn {
957+
background: transparent;
958+
width: 36%;
959+
}
960960
961961
.submit-btn {
962-
width: 67%;
962+
width: 62%;
963963
}
964964
}
965965

src/views/SubEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ const handleEditGlobalClick = () => {
13821382
display: flex;
13831383
justify-content: space-between;
13841384
bottom: 0;
1385+
left: 0;
13851386
width: 100%;
13861387
padding: 8px var(--safe-area-side) calc(v-bind("padding") + 8px)
13871388
var(--safe-area-side);
@@ -1396,7 +1397,6 @@ const handleEditGlobalClick = () => {
13961397
display: flex;
13971398
justify-content: center;
13981399
align-items: center;
1399-
14001400
svg {
14011401
margin-right: 4px;
14021402
}

src/views/share/SharePopup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pop-class="share-popup"
66
position="center"
77
:style="{
8-
width: `90%`,
8+
width:'88vw',
99
padding: '20px 12px 0 12px',
1010
backgroundColor: 'var(--background-color)',
1111
}"

0 commit comments

Comments
 (0)