Update index.tsx

层级不够高,会被底部动物的渐变遮挡
This commit is contained in:
ZYYO
2025-02-06 00:26:51 +08:00
committed by 宇阳
parent d3b40dccdc
commit d7b71255ac

View File

@@ -21,7 +21,7 @@ export default () => {
return (
<>
<div className="overflow-hidden fixed top-[70%] right-[3%] z-20 flex flex-col w-12 bg-white dark:bg-black-b border dark:border-[#4e5969] rounded-md divide-y dark:divide-[#4e5969] transition-colors">
<div className="z-[999] overflow-hidden fixed top-[70%] right-[3%] z-20 flex flex-col w-12 bg-white dark:bg-black-b border dark:border-[#4e5969] rounded-md divide-y dark:divide-[#4e5969] transition-colors">
{isDark
? <Image src={sun.src} alt="太阳" width={46} height={46} className={itemSty} onClick={() => setIsDark(false)} />
: <Image src={moon.src} alt="月亮" width={46} height={46} className={itemSty} onClick={() => setIsDark(true)} />
@@ -35,4 +35,4 @@ export default () => {
<Search disclosure={{ isOpen, onClose, onOpenChange }} />
</>
)
}
}