From d00f55c43cd06144e4665af1fd96510fab092153 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 31 Oct 2024 10:28:06 +0300 Subject: [PATCH] Refactor #6690 - For Galleria --- .../src/galleria/style/GalleriaStyle.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/primevue/src/galleria/style/GalleriaStyle.js b/packages/primevue/src/galleria/style/GalleriaStyle.js index 8c04d4687..6eae421a7 100644 --- a/packages/primevue/src/galleria/style/GalleriaStyle.js +++ b/packages/primevue/src/galleria/style/GalleriaStyle.js @@ -74,6 +74,18 @@ const theme = ({ dt }) => ` right: 0; } +.p-galleria-prev-button:dir(rtl) { + left: auto; + right: 0; + transform: rotate(180deg); +} + +.p-galleria-next-button:dir(rtl) { + right: auto; + left: 0; + transform: rotate(180deg); +} + .p-galleria-item { display: flex; justify-content: center; @@ -166,6 +178,11 @@ const theme = ({ dt }) => ` width: 100%; } +.p-galleria:not(.p-galleria-thumbnails-right):not(.p-galleria-thumbnails-left) .p-galleria-thumbnail-prev-button:dir(rtl), +.p-galleria:not(.p-galleria-thumbnails-right):not(.p-galleria-thumbnails-left) .p-galleria-thumbnail-next-button:dir(rtl) { + transform: rotate(180deg); +} + .p-galleria-thumbnail-items { display: flex; }