File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { usePathname } from 'next/navigation'
13
13
import type { IHeaderMenu } from '../config'
14
14
15
15
import { RootPortal } from '~/components/ui/portal'
16
+ import useDebounceValue from '~/hooks/common/use-debounce-value'
16
17
import { clsxm } from '~/lib/helper'
17
18
import { useScollIsUpAndPageIsOver } from '~/providers/root/page-scroll-info-provider'
18
19
@@ -34,7 +35,10 @@ export const HeaderContent = () => {
34
35
const AccessibleMenu : Component = ( ) => {
35
36
const hasMetaInfo = useHeaderHasMetaInfo ( )
36
37
37
- const showShow = useScollIsUpAndPageIsOver ( 600 ) && hasMetaInfo
38
+ const showShow = useDebounceValue (
39
+ useScollIsUpAndPageIsOver ( 600 ) && hasMetaInfo ,
40
+ 120 ,
41
+ )
38
42
return (
39
43
< RootPortal >
40
44
< AnimatePresence >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const HeaderDrawerButton = () => {
36
36
37
37
< Dialog . Content >
38
38
< m . dialog
39
- className = "fixed left-0 right-0 top-0 z-[12] block overflow-auto rounded-xl bg-base-100/90"
39
+ className = "fixed left-0 right-0 top-0 z-[12] block overflow-auto rounded-xl bg-base-100/90 backdrop-blur-sm "
40
40
initial = { { opacity : 0.8 } }
41
41
animate = { { opacity : 1 } }
42
42
exit = { { opacity : 0 } }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const ReadIndicatorForMobile: Component<{}> = () => {
39
39
) }
40
40
>
41
41
< div
42
- className = "absolute top-0 w-full bg-accent/80"
42
+ className = "absolute top-0 w-full bg-accent/80 duration-75 ease-linear "
43
43
style = { {
44
44
height : `${ readPercent } %` ,
45
45
} }
You can’t perform that action at this time.
0 commit comments