fix lyric bugs

This commit is contained in:
2026-08-08 23:59:11 +08:00
parent 9455c1d57e
commit 5261c2526d
2 changed files with 7 additions and 2 deletions

View File

@@ -76,7 +76,11 @@ export function toggleDesktopLyric(show: boolean): void {
})
lyricWindow.setBackgroundColor('#00000000')
lyricWindow.setAlwaysOnTop(true, 'screen-saver')
lyricWindow.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
// skipTransformProcessType避免 macOS 把进程切成 UIElementApplication 导致 Dock 图标消失
lyricWindow.setVisibleOnAllWorkspaces(true, {
visibleOnFullScreen: true,
skipTransformProcessType: true
})
// 在页面样式生效前强制透明,避免 body 默认 --bg 露出白底
lyricWindow.webContents.on('dom-ready', () => {

View File

@@ -472,7 +472,8 @@ export default function Lyric(): JSX.Element {
<div
aria-hidden
className="drag fixed top-0 z-[45] h-[52px]"
style={{ left: isMac ? 130 : 170, right: 170 }}
/* 右侧须让出「罗马音 + 中文 + 导出」整组170 只会露出导出/半个中文,罗马音会被挡住 */
style={{ left: isMac ? 130 : 170, right: 320 }}
/>
) : null}
<motion.div