fix: drop blur not working on the vibrancy layer of macos electron

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-05-19 21:12:21 +08:00
parent 3ecb527ba1
commit 33ef0c4b51
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 2 additions and 3 deletions

View File

@ -15,13 +15,12 @@ export const UpdateNotice = () => {
const { t } = useTranslation()
useEffect(() => {
const unlisten = handlers?.updateDownloaded.listen(() => {
return handlers?.updateDownloaded.listen(() => {
setUpdaterStatus({
type: "app",
status: "ready",
})
})
return unlisten
}, [])
const handleClick = useRef(() => {
@ -70,7 +69,7 @@ export const UpdateNotice = () => {
<m.div
onMouseMove={handleMouseMove}
className={cn(
"bg-background/80 backdrop-blur-background group absolute inset-x-3 cursor-pointer overflow-hidden rounded-lg py-3 text-center text-sm shadow",
"bg-background/80 macos:bg-background backdrop-blur-background group absolute inset-x-3 cursor-pointer overflow-hidden rounded-lg py-3 text-center text-sm shadow",
playerIsShow ? "bottom-[4.5rem]" : "bottom-3",
)}
onClick={handleClick}