调整了桌面歌词在启用滚动到顶部时的距离

This commit is contained in:
lyswhut
2023-02-01 16:23:41 +08:00
parent 65840e45cd
commit ef7033cac0
5 changed files with 5 additions and 4 deletions
@@ -6,7 +6,7 @@ import { setWindowBounds } from '@lyric/utils/ipc'
const getOffsetTop = (contentHeight, lineHeight) => {
switch (setting['desktopLyric.scrollAlign']) {
case 'top': return setting['desktopLyric.style.lineGap'] / 2
case 'top': return 0
default: return contentHeight * 0.5 - lineHeight / 2
}
}