mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: toast position
This commit is contained in:
parent
ce8e25ff4b
commit
3714b5ba32
@ -92,8 +92,8 @@ const App: React.FC = () => {
|
|||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<main className="flex z-20 min-h-[calc(100vh-calc(var(--spacing)*16))] flex-1 flex-col gap-4 p-4 md:p-10 md:pt-8">
|
<main className="flex z-20 min-h-[calc(100vh-calc(var(--spacing)*16))] flex-1 flex-col gap-4 p-4 md:p-10 md:pt-8">
|
||||||
<Header />
|
|
||||||
<RefreshToast />
|
<RefreshToast />
|
||||||
|
<Header />
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Server />} />
|
<Route path="/" element={<Server />} />
|
||||||
<Route path="/server/:id" element={<ServerDetail />} />
|
<Route path="/server/:id" element={<ServerDetail />} />
|
||||||
|
@ -157,14 +157,13 @@ export function RefreshToast() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center justify-center">
|
|
||||||
<AnimatePresence>
|
<AnimatePresence>
|
||||||
<m.div
|
<m.div
|
||||||
initial={{ opacity: 0, filter: "blur(10px)", scale: 0.8 }}
|
initial={{ opacity: 0, filter: "blur(10px)", scale: 0.8 }}
|
||||||
animate={{ opacity: 1, filter: "blur(0px)", scale: 1 }}
|
animate={{ opacity: 1, filter: "blur(0px)", scale: 1 }}
|
||||||
exit={{ opacity: 0, filter: "blur(10px)", scale: 0.8 }}
|
exit={{ opacity: 0, filter: "blur(10px)", scale: 0.8 }}
|
||||||
transition={{ type: "spring", duration: 0.8 }}
|
transition={{ type: "spring", duration: 0.8 }}
|
||||||
className="fixed overflow-hidden top-[35px] z-[999] flex items-center justify-between gap-4 rounded-[50px] border-[1px] border-solid bg-white px-2 py-1.5 shadow-xl shadow-black/5 dark:border-stone-700 dark:bg-stone-800 dark:shadow-none"
|
className="fixed left-1/2 -translate-x-1/2 top-8 z-[999] flex items-center justify-between gap-4 rounded-[50px] border-[1px] border-solid bg-white px-2 py-1.5 shadow-xl shadow-black/5 dark:border-stone-700 dark:bg-stone-800 dark:shadow-none"
|
||||||
>
|
>
|
||||||
<section className="flex items-center gap-1.5">
|
<section className="flex items-center gap-1.5">
|
||||||
<LoadingSpinner />
|
<LoadingSpinner />
|
||||||
@ -172,7 +171,6 @@ export function RefreshToast() {
|
|||||||
</section>
|
</section>
|
||||||
</m.div>
|
</m.div>
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user