From 5da30dd2b00c5831215f5e3fbb6a1fb44e43c1a1 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 10 May 2024 14:16:37 +0300 Subject: [PATCH] ScrollTop fixes --- components/lib/scrolltop/style/ScrollTopStyle.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/lib/scrolltop/style/ScrollTopStyle.js b/components/lib/scrolltop/style/ScrollTopStyle.js index e92b3658e..6796d1acd 100644 --- a/components/lib/scrolltop/style/ScrollTopStyle.js +++ b/components/lib/scrolltop/style/ScrollTopStyle.js @@ -1,17 +1,15 @@ import BaseStyle from 'primevue/base/style'; const theme = ({ dt }) => ` -.p-scrolltop { +.p-scrolltop.p-button { position: fixed; bottom: 20px; right: 20px; } -.p-scrolltop-sticky { +.p-scrolltop-sticky.p-button { position: sticky; -} - -.p-scrolltop-sticky { + display: flex; margin-left: auto; }