Skip to content

Commit f81f3ed

Browse files
committed
Revert "✨ feat: 移动端基础支持 Part.2"
This reverts commit 9e3bc08.
1 parent 585db3a commit f81f3ed

4 files changed

Lines changed: 2 additions & 54 deletions

File tree

src/components/Layout/User.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,6 @@ onBeforeMount(() => {
202202
&:active {
203203
background-color: rgba(var(--primary), 0.12);
204204
}
205-
@media (max-width: 768px) {
206-
width: 40px;
207-
height: 40px;
208-
padding: 0;
209-
justify-content: center;
210-
background-color: transparent;
211-
.avatar {
212-
border: none;
213-
}
214-
.user-data {
215-
display: none;
216-
}
217-
}
218205
}
219206
.user-menu {
220207
display: flex;

src/components/Modal/Login/Login.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<!-- 其他方式 -->
1414
<n-flex align="center" class="other">
1515
<n-button :focusable="false" size="small" quaternary round @click="specialLogin('uid')">
16-
{{ isMobile ? "UID" : "UID 登录" }}
16+
UID 登录
1717
</n-button>
1818
<n-divider vertical />
1919
<n-button :focusable="false" size="small" quaternary round @click="specialLogin('cookie')">
20-
{{ isMobile ? "Cookie" : "Cookie 登录" }}
20+
Cookie 登录
2121
</n-button>
2222
</n-flex>
2323
<!-- 关闭登录 -->
@@ -35,7 +35,6 @@ import { setCookies } from "@/utils/cookie";
3535
import { updateSpecialUserData, updateUserData } from "@/utils/auth";
3636
import { useDataStore } from "@/stores";
3737
import { LoginType } from "@/types/main";
38-
import { isMobile } from "@/utils/env";
3938
import LoginUID from "./LoginUID.vue";
4039
import LoginCookie from "./LoginCookie.vue";
4140
@@ -123,21 +122,5 @@ onBeforeMount(() => {
123122
.close {
124123
margin-bottom: 8px;
125124
}
126-
@media (max-width: 768px) {
127-
.logo {
128-
width: 50px;
129-
height: 50px;
130-
margin: 10px auto 20px auto;
131-
}
132-
.login-tabs {
133-
transform: scale(0.9);
134-
}
135-
.other {
136-
margin: 10px 0;
137-
.n-button {
138-
width: 80px;
139-
}
140-
}
141-
}
142125
}
143126
</style>

src/components/Player/MainLyric.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,6 @@ onBeforeUnmount(() => {
506506
.roma {
507507
text-align: right;
508508
justify-content: flex-end;
509-
@media (max-width: 768px) {
510-
justify-content: flex-start;
511-
}
512509
}
513510
}
514511
}

src/components/Search/SearchInp.vue

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -191,25 +191,6 @@ onMounted(() => {
191191
&.focus {
192192
width: 300px;
193193
}
194-
@media (max-width: 768px) {
195-
width: 40px;
196-
padding: 0;
197-
:deep(.n-input__input) {
198-
opacity: 0;
199-
}
200-
:deep(.n-input__placeholder) {
201-
opacity: 0;
202-
}
203-
&.focus {
204-
width: 200px;
205-
:deep(.n-input__input) {
206-
opacity: 1;
207-
}
208-
:deep(.n-input__placeholder) {
209-
opacity: 1;
210-
}
211-
}
212-
}
213194
}
214195
.search-mask {
215196
position: fixed;

0 commit comments

Comments
 (0)