fix lyric bugs
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user