diff --git a/.github/ISSUE_TEMPLATE/issue_template.md b/.github/ISSUE_TEMPLATE/issue_template.md deleted file mode 100644 index 737d8cb..0000000 --- a/.github/ISSUE_TEMPLATE/issue_template.md +++ /dev/null @@ -1,12 +0,0 @@ -# 尽量每个 issue 只提一个 bug 或新功能 - -### 提新 issue 前请确认 👉 - -- 没人提过这个 issue([这里看所有 issue](https://github.com/qier222/YesPlayMusic/issues)) -- 项目的 Todo 里没有与你 issue 相关的内容([这里看 Todo](https://github.com/qier222/YesPlayMusic/projects/1)) - -### 反馈 bug 需要的信息 - -- 用的是网页版还是客户端 -- 浏览器名称或电脑操作系统 -- 控制台 Console 页面的截图(按 F12 可打开控制台) diff --git a/src/components/Cover.vue b/src/components/Cover.vue index dc51b27..98bafa8 100644 --- a/src/components/Cover.vue +++ b/src/components/Cover.vue @@ -50,9 +50,7 @@ export default { }, computed: { imageStyles() { - let styles = { - objectFit: "cover", - }; + let styles = {}; if (this.fixedSize !== 0) { styles.width = this.fixedSize + "px"; styles.height = this.fixedSize + "px"; diff --git a/src/components/CoverRow.vue b/src/components/CoverRow.vue index 7df661d..7270c3d 100644 --- a/src/components/CoverRow.vue +++ b/src/components/CoverRow.vue @@ -101,11 +101,11 @@ export default { img1v1ID = img1v1ID[img1v1ID.length - 1]; if (img1v1ID === "5639395138885805.jpg") { // 没有头像的歌手,网易云返回的img1v1Url并不是正方形的 😅😅😅 - return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512x512"; + return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512y512"; } } let img = item.img1v1Url || item.picUrl || item.coverImgUrl; - return `${img}?param=512x512`; + return `${img}?param=512y512`; }, }, }; @@ -128,6 +128,7 @@ export default { -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; + word-break: break-all; } .info { font-size: 12px; @@ -137,6 +138,7 @@ export default { -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; + word-break: break-word; } } } diff --git a/src/components/MvRow.vue b/src/components/MvRow.vue index 6f3add3..a9669a6 100644 --- a/src/components/MvRow.vue +++ b/src/components/MvRow.vue @@ -51,7 +51,7 @@ export default { }, getUrl(mv) { let url = mv.imgurl16v9 ?? mv.cover ?? mv.coverUrl; - return url.replace(/^http:/, "https:") + "?param=464x260"; + return url.replace(/^http:/, "https:") + "?param=464y260"; }, getID(mv) { if (mv.id !== undefined) return mv.id; diff --git a/src/locale/lang/zh-CN.js b/src/locale/lang/zh-CN.js index 0764ee6..0d00f68 100644 --- a/src/locale/lang/zh-CN.js +++ b/src/locale/lang/zh-CN.js @@ -11,9 +11,9 @@ export default { }, home: { recommendPlaylist: "推荐歌单", - recommendArtist: "推荐歌手", + recommendArtist: "推荐艺人", newAlbum: "新专速递", - seeMore: "更多", + seeMore: "查看全部", charts: "排行榜", }, library: { @@ -22,7 +22,7 @@ export default { sLikedSongs: "喜欢的音乐", playlists: "歌单", albums: "专辑", - artists: "歌手", + artists: "艺人", mvs: "MV", }, explore: { @@ -37,7 +37,7 @@ export default { EPsSingles: "EP和单曲", albums: "专辑", withAlbums: "张专辑", - artist: "歌手", + artist: "艺人", videos: "个MV", following: "已关注", follow: "关注", @@ -99,7 +99,7 @@ export default { close: "关闭", }, search: { - artist: "歌手", + artist: "艺人", album: "专辑", song: "歌曲", mv: "视频", diff --git a/src/utils/Player.js b/src/utils/Player.js index e8f6f8c..a04ba88 100644 --- a/src/utils/Player.js +++ b/src/utils/Player.js @@ -157,7 +157,10 @@ export default class { html5: true, format: ["mp3", "flac"], }); - if (autoplay) this.play(); + if (autoplay) { + this.play(); + document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`; + } this._howler.once("end", () => { this._nextTrackCallback(); }); @@ -214,7 +217,6 @@ export default class { let track = data.songs[0]; this._currentTrack = track; this._updateMediaSessionMetaData(track); - document.title = `${track.name} · ${track.ar[0].name} - YesPlayMusic`; return this._getAudioSource(track).then((source) => { if (source) { this._playAudioSource(source, autoplay); @@ -319,10 +321,12 @@ export default class { pause() { this._howler.pause(); this._playing = false; + document.title = "YesPlayMusic"; } play() { this._howler.play(); this._playing = true; + document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`; } seek(time = null) { if (time !== null) this._howler.seek(time); diff --git a/src/views/artist.vue b/src/views/artist.vue index 375ca34..9079f24 100644 --- a/src/views/artist.vue +++ b/src/views/artist.vue @@ -103,7 +103,7 @@