fix: theme switcher portal — max z-index, remove backdrop-blur to fix compositing
This commit is contained in:
@@ -72,8 +72,8 @@ export function ThemeSwitcher() {
|
|||||||
{open && createPortal(
|
{open && createPortal(
|
||||||
<div
|
<div
|
||||||
ref={panelRef}
|
ref={panelRef}
|
||||||
className="fixed z-[9999] w-52 rounded-2xl border border-[var(--pc-border-strong)] bg-[var(--pc-bg-surface)] backdrop-blur-xl shadow-2xl p-3 animate-fade-in"
|
className="fixed w-52 rounded-2xl border border-[var(--pc-border-strong)] bg-[var(--pc-bg-surface)] shadow-2xl p-3 animate-fade-in"
|
||||||
style={{ top: pos.top, right: pos.right }}
|
style={{ top: pos.top, right: pos.right, zIndex: 2147483647 }}
|
||||||
>
|
>
|
||||||
<div className="text-[10px] uppercase tracking-wider text-[var(--pc-text-faint)] font-semibold mb-2">
|
<div className="text-[10px] uppercase tracking-wider text-[var(--pc-text-faint)] font-semibold mb-2">
|
||||||
{t('theme.mode')}
|
{t('theme.mode')}
|
||||||
|
|||||||
Reference in New Issue
Block a user