Style fixes for scroll to top button after icon switch

This commit is contained in:
Daniel Schädler 2025-03-15 13:43:31 +01:00
parent 2800cefdd9
commit 12028999bf
1 changed files with 6 additions and 3 deletions

View File

@ -34,10 +34,13 @@ export function ScrollToTopButton() {
zIndex: 999, zIndex: 999,
transition: 'opacity 0.5s ease-in-out', transition: 'opacity 0.5s ease-in-out',
opacity: isVisible ? 0.7 : 0, opacity: isVisible ? 0.7 : 0,
pointerEvents: isVisible ? 'auto' : 'none' pointerEvents: isVisible ? 'auto' : 'none',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}} }}
> >
<FaCircleArrowUp/> <FaCircleArrowUp style={{fontSize: '36px'}}/>
</Button> </Button>
); );
} }