Browse Source

fix: 🐛

imwald
codytseng 1 year ago
parent
commit
92a0f9071f
  1. 5
      src/components/ScrollToTopButton/index.tsx

5
src/components/ScrollToTopButton/index.tsx

@ -25,7 +25,7 @@ export default function ScrollToTopButton({
return ( return (
<div <div
className={cn( className={cn(
`fixed sm:sticky z-20 flex justify-end w-full pr-3 transition-opacity duration-700 ${visible ? '' : 'opacity-0'}`, `fixed sm:sticky z-20 flex justify-end w-full pr-3 pointer-events-none transition-opacity duration-700 ${visible ? '' : 'opacity-0'}`,
className className
)} )}
style={{ style={{
@ -36,8 +36,9 @@ export default function ScrollToTopButton({
> >
<Button <Button
variant="secondary-2" variant="secondary-2"
className="rounded-full w-12 h-12 p-0 hover:text-background" className="rounded-full w-12 h-12 p-0 hover:text-background pointer-events-auto disabled:pointer-events-none"
onClick={handleScrollToTop} onClick={handleScrollToTop}
disabled={!visible}
> >
<ChevronUp /> <ChevronUp />
</Button> </Button>

Loading…
Cancel
Save