From 12028999bf4bcffbb7149c1441aa9fba52f26db8 Mon Sep 17 00:00:00 2001 From: Malaber Date: Sat, 15 Mar 2025 13:43:31 +0100 Subject: [PATCH] Style fixes for scroll to top button after icon switch --- js/components/ScrollToTopButton.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/components/ScrollToTopButton.js b/js/components/ScrollToTopButton.js index 3e9bf7d..c2277a2 100644 --- a/js/components/ScrollToTopButton.js +++ b/js/components/ScrollToTopButton.js @@ -34,10 +34,13 @@ export function ScrollToTopButton() { zIndex: 999, transition: 'opacity 0.5s ease-in-out', opacity: isVisible ? 0.7 : 0, - pointerEvents: isVisible ? 'auto' : 'none' + pointerEvents: isVisible ? 'auto' : 'none', + display: 'flex', + alignItems: 'center', + justifyContent: 'center' }} > - + ); -} +} \ No newline at end of file