updated styles for ScrollTopButton

This commit is contained in:
2022-01-24 13:53:23 +01:00
parent 754243e3b2
commit 9db674279d

View File

@@ -23,9 +23,17 @@ export const ScrollTopButton = () => {
return (
<i
className="bi bi-arrow-up-square scroll-top-btn text-info"
className="bi bi-arrow-up-square text-info"
onClick={() => scrollToTop()}
style={{display: visible ? 'inline' : 'none'}}
style={{
display: visible ? 'inline' : 'none',
position: 'fixed',
right: '50px',
bottom: '90px',
fontSize: '3rem',
zIndex: 1,
cursor: 'pointer'
}}
/>
)
}