diff --git a/index.html b/index.html
index 4641787..a90cff0 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,5 @@
-
+
@@ -15,7 +15,7 @@
--animate-delay: 0.5s;
}
-
+
diff --git a/src/App.vue b/src/App.vue
index 18855c3..06a029d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,5 @@
-
+
@@ -16,6 +16,8 @@ import { darkTheme } from 'naive-ui';
import store from '@/store';
+import { isMobile } from './utils';
+
const playMusicUrl = computed(() => store.state.playMusicUrl as string);
// 是否播放
const play = computed(() => store.state.play as boolean);
@@ -35,4 +37,14 @@ div {
.app {
user-select: none;
}
+
+.mobile {
+ .text-base {
+ font-size: 14px !important;
+ }
+}
+
+.html:has(.mobile) {
+ font-size: 14px;
+}
diff --git a/src/components/MusicList.vue b/src/components/MusicList.vue
index a6493db..74a648e 100644
--- a/src/components/MusicList.vue
+++ b/src/components/MusicList.vue
@@ -1,8 +1,13 @@
-
+
-
{{ name }}
+
{{ name }}
@@ -25,7 +30,7 @@
import { useStore } from 'vuex';
import SongItem from '@/components/common/SongItem.vue';
-import { setAnimationClass, setAnimationDelay } from '@/utils';
+import { isMobile, setAnimationClass, setAnimationDelay } from '@/utils';
import PlayBottom from './common/PlayBottom.vue';
@@ -78,4 +83,10 @@ const close = () => {
height: calc(100% - 60px);
}
}
+
+.mobile {
+ .music-page {
+ @apply px-4;
+ }
+}
diff --git a/src/components/PlaylistType.vue b/src/components/PlaylistType.vue
index 97059f7..8b76198 100644
--- a/src/components/PlaylistType.vue
+++ b/src/components/PlaylistType.vue
@@ -74,4 +74,10 @@ onMounted(() => {
@apply block text-center;
}
}
+
+.mobile {
+ .play-list-type {
+ @apply mx-0 w-full;
+ }
+}
diff --git a/src/components/RecommendSinger.vue b/src/components/RecommendSinger.vue
index 360dce3..b9a7d4b 100644
--- a/src/components/RecommendSinger.vue
+++ b/src/components/RecommendSinger.vue
@@ -1,58 +1,60 @@
-
-
-
+
+
+
-
-
每日推荐列表
+
+
+
每日推荐
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
{{ item.musicSize }}首
-
-
-
-
-
-
{{ item.name }}
-
{{ item.name }}
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
{{ item.musicSize }}首
+
+
+
+
+
+
{{ item.name }}
+
{{ item.name }}
+
+
+
-
-
-
+