Skip to content

Commit

Permalink
1. 修复了评论页面可能出现的评论不换行导致的页面显示bug;
Browse files Browse the repository at this point in the history
2. 修复了音乐库被播放器遮挡的bug;
3. 快捷键新增空格键支持;
4. 修复了屏幕较大时无法调节歌词进度的bug
5. 完善翻译
  • Loading branch information
stark81 committed Jan 22, 2025
1 parent 3107bd7 commit dd86c91
Show file tree
Hide file tree
Showing 18 changed files with 532 additions and 400 deletions.
Binary file added public/img/icons/lock_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/lock_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/lrc_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/lrc_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/unlock_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/unlock_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,6 @@ export default {
},
methods: {
...mapMutations(['deleteLocalMusic']),
handleKeydown(e) {
if (e.code === 'Space') {
if (e.target.tagName === 'INPUT') return false;
if (e.target.classList.contains('comment_box')) return false;
if (this.$route.name === 'mv') return false;
e.preventDefault();
this.player.playOrPause();
}
},
fetchData() {
if (!isLooseLoggedIn()) return;
this.$store.dispatch('fetchLikedSongs');
Expand Down
1 change: 1 addition & 0 deletions src/components/CommentFloor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ export default {
}
.comment {
width: auto;
word-break: break-word;
.comment-nickname {
cursor: pointer;
Expand Down
1 change: 1 addition & 0 deletions src/components/CommentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ export default {
}
.comment {
width: auto;
word-break: break-word;
.comment-nickname {
cursor: pointer;
Expand Down
1 change: 0 additions & 1 deletion src/components/LyricMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default {
}));
}
const hasTranslation = ret[this.highlighIdx]?.contents[1];
console.log(hasTranslation);
const idx = hasTranslation
? this.highlighIdx
: this.highlighIdx + (this.highlighIdx % 2 === 0 ? 0 : -1);
Expand Down
7 changes: 7 additions & 0 deletions src/electron/ipcRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export function ipcRenderer(vueInstance) {
});

ipcRenderer.on('play', () => {
if (
document.activeElement.tagName === 'INPUT' ||
document.activeElement.classList.contains('comment_box')
) {
// 防止输入框聚焦时播放
return;
}
player.playOrPause();
});

Expand Down
Loading

0 comments on commit dd86c91

Please sign in to comment.