mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-05-02 23:39:51 +08:00
feat: tailwind主题的一些修改(封面图以及播放列表样式) (#833)
* tailwind主题添加下载进度以及下载控制按钮 * 默认歌曲封面 * Change default cover image from xiaoai to changpian * 修改tailwind播放界面默认歌曲封面图片以及播放列表样式修正 由于没找到如何动态插入的style 标签,直接使用了内联样式来修正左侧播放列表了。
This commit is contained in:
BIN
xiaomusic/static/changpian.png
Normal file
BIN
xiaomusic/static/changpian.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 664 KiB |
14
xiaomusic/static/tailwind/index.html
vendored
14
xiaomusic/static/tailwind/index.html
vendored
@@ -146,7 +146,7 @@
|
||||
<li v-for="playlist in customPlaylists" :key="playlist.name">
|
||||
<a class="flex justify-between" :class="{ active: curSelectPlaylist === playlist.name }"
|
||||
@click="selectPlaylist(playlist.name)">
|
||||
<span class="truncate flex-1">{{ playlist.name }}</span>
|
||||
<span class="truncate flex-1" style="white-space:unset;">{{ playlist.name }}</span>
|
||||
<div class="badge badge-sm">{{ playlist.count }}</div>
|
||||
</a>
|
||||
</li>
|
||||
@@ -255,7 +255,7 @@
|
||||
<!-- <a href="./now_playing.html" target="_blank"> -->
|
||||
<div class="w-12 rounded-lg">
|
||||
<!-- <img :src="currentSong?.cover" :alt="currentSong?.title" />-->
|
||||
<img :src="currentSong?.cover || '/static/xiaoai.png'" :alt="currentSong?.title" />
|
||||
<img :src="currentSong?.cover || '/static/changpian.png'" :alt="currentSong?.title" />
|
||||
</div>
|
||||
<!-- </a> -->
|
||||
</div>
|
||||
@@ -503,7 +503,7 @@
|
||||
title: tags.title || data.cur_music,
|
||||
artist: tags.artist || '未知歌手',
|
||||
album: tags.album || '未知专辑',
|
||||
cover: tags.picture || "/static/xiaoai.png",
|
||||
cover: tags.picture || "/static/changpian.png",
|
||||
url: musicInfo.url,
|
||||
isPlaying: data.is_playing
|
||||
};
|
||||
@@ -515,7 +515,7 @@
|
||||
title: data.cur_music,
|
||||
artist: '未知歌手',
|
||||
album: '未知专辑',
|
||||
cover: "/static/xiaoai.png",
|
||||
cover: "/static/changpian.png",
|
||||
isPlaying: data.is_playing
|
||||
};
|
||||
}
|
||||
@@ -697,7 +697,7 @@
|
||||
artist: '未知歌手',
|
||||
album: '未知专辑',
|
||||
duration: '0:00',
|
||||
cover: '/static/xiaoai.png',
|
||||
cover: '/static/changpian.png',
|
||||
url: '',
|
||||
isLoading: false
|
||||
};
|
||||
@@ -711,7 +711,7 @@
|
||||
year: info.tags?.year || '',
|
||||
genre: info.tags?.genre || '',
|
||||
duration: info.duration ? formatTime(info.duration) : '0:00',
|
||||
cover: info.tags?.picture || '/static/xiaoai.png',
|
||||
cover: info.tags?.picture || '/static/changpian.png',
|
||||
url: info.url,
|
||||
lyrics: info.tags?.lyrics || '',
|
||||
isLoading: false
|
||||
@@ -1214,7 +1214,7 @@
|
||||
artist: '未知歌手',
|
||||
album: '未知专辑',
|
||||
duration: '0:00',
|
||||
cover: '/static/xiaoai.png',
|
||||
cover: '/static/changpian.png',
|
||||
url: '',
|
||||
isLoading: false
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user