fix: drop blur not working on the vibrancy layer of macos electron
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
3ecb527ba1
commit
33ef0c4b51
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue