Skip to content

Commit a72ef77

Browse files
committed
mobile适配
1 parent 8a164cc commit a72ef77

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/App.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,18 @@ onBeforeUnmount(() => {
165165
display: flex;
166166
justify-content: center;
167167
align-items: center;
168-
top: 84%;
169-
left: calc(50% - 28px);
168+
top: auto;
169+
bottom: clamp(96px, 16vh, 140px);
170+
left: 50%;
171+
margin-left: -28px;
170172
width: 56px;
171173
height: 34px;
172174
background: rgb(0 0 0 / 20%);
173175
backdrop-filter: blur(10px);
174176
border-radius: 6px;
175177
transition: transform 0.3s;
176178
animation: fade 0.5s;
179+
z-index: 5;
177180
&:active {
178181
transform: scale(0.95);
179182
}
@@ -216,11 +219,8 @@ onBeforeUnmount(() => {
216219
}
217220
}
218221
.menu {
219-
top: 605.64px; // 721px * 0.84
220-
left: 170.5px; // 391 * 0.5 - 25px
221-
@media (min-width: 391px) {
222-
left: calc(50% - 25px);
223-
}
222+
bottom: clamp(88px, 18vh, 132px);
223+
margin-left: -28px;
224224
}
225225
.f-ter {
226226
bottom: 16px;
@@ -234,7 +234,8 @@ onBeforeUnmount(() => {
234234
width: 391px;
235235
}
236236
.menu {
237-
left: 167.5px; // 391px * 0.5 - 28px
237+
left: 50%;
238+
margin-left: -28px;
238239
}
239240
.f-ter {
240241
width: 100%;

0 commit comments

Comments
 (0)