mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-03-22 02:51:52 +00:00
fix: animate man position
This commit is contained in:
@@ -65,7 +65,7 @@ export default function Header() {
|
|||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
|
|
||||||
return isDesktop ? (
|
return isDesktop ? (
|
||||||
<header className="flex pt-8 px-4 overflow-x-auto dark:bg-black/40 bg-muted border-b-[1px]">
|
<header className="flex pt-8 px-4 dark:bg-black/40 bg-muted border-b-[1px] overflow-visible">
|
||||||
<NavigationMenu className="flex flex-col items-start relative max-w-5xl mx-auto">
|
<NavigationMenu className="flex flex-col items-start relative max-w-5xl mx-auto">
|
||||||
<img
|
<img
|
||||||
className="absolute -right-0 z-[9999] top-11 w-20 scale-100 pointer-events-none"
|
className="absolute -right-0 z-[9999] top-11 w-20 scale-100 pointer-events-none"
|
||||||
@@ -339,7 +339,7 @@ export default function Header() {
|
|||||||
|
|
||||||
// https://github.com/streamich/react-use/blob/master/src/useInterval.ts
|
// https://github.com/streamich/react-use/blob/master/src/useInterval.ts
|
||||||
const useInterval = (callback: () => void, delay?: number | null) => {
|
const useInterval = (callback: () => void, delay?: number | null) => {
|
||||||
const savedCallback = useRef<() => void>(() => {})
|
const savedCallback = useRef<() => void>(() => { })
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
savedCallback.current = callback
|
savedCallback.current = callback
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user