File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,6 +202,19 @@ 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+ }
205218}
206219.user-menu {
207220 display : flex ;
Original file line number Diff line number Diff line change 1313 <!-- 其他方式 -->
1414 <n-flex align =" center" class =" other" >
1515 <n-button :focusable =" false" size =" small" quaternary round @click =" specialLogin('uid')" >
16- UID 登录
16+ {{ isMobile ? " UID" : "UID 登录" }}
1717 </n-button >
1818 <n-divider vertical />
1919 <n-button :focusable =" false" size =" small" quaternary round @click =" specialLogin('cookie')" >
20- Cookie 登录
20+ {{ isMobile ? " Cookie" : "Cookie 登录" }}
2121 </n-button >
2222 </n-flex >
2323 <!-- 关闭登录 -->
@@ -35,6 +35,7 @@ import { setCookies } from "@/utils/cookie";
3535import { updateSpecialUserData , updateUserData } from " @/utils/auth" ;
3636import { useDataStore } from " @/stores" ;
3737import { LoginType } from " @/types/main" ;
38+ import { isMobile } from " @/utils/env" ;
3839import LoginUID from " ./LoginUID.vue" ;
3940import LoginCookie from " ./LoginCookie.vue" ;
4041
@@ -122,5 +123,21 @@ onBeforeMount(() => {
122123 .close {
123124 margin-bottom : 8px ;
124125 }
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+ }
125142}
126143 </style >
Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ onBeforeUnmount(() => {
153153 padding-left : 20px ;
154154 padding-right : 20px ;
155155 --amll-lyric-player-font-size : calc (var (--amll-lyric-player-font-size ) - 4px );
156+ pointer-events : auto ;
157+ cursor : pointer ;
156158 }
157159 }
158160
Original file line number Diff line number Diff line change @@ -380,7 +380,6 @@ onBeforeUnmount(() => {
380380 transform : scale (0.86 );
381381 transform-origin : left center ;
382382 @media (max-width : 768px ) {
383- text-align : left ;
384383 align-items : flex-start ;
385384 font-size : calc (var (--lrc-size ) - 4px );
386385 }
@@ -506,6 +505,9 @@ onBeforeUnmount(() => {
506505 .roma {
507506 text-align : right ;
508507 justify-content : flex-end ;
508+ @media (max-width : 768px ) {
509+ justify-content : flex-start ;
510+ }
509511 }
510512 }
511513 }
Original file line number Diff line number Diff line change @@ -191,6 +191,25 @@ 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+ }
194213 }
195214 .search-mask {
196215 position : fixed ;
You can’t perform that action at this time.
0 commit comments