From d9cfb86f11e60ebe9c27bb5e373791ed8fcfd9bb Mon Sep 17 00:00:00 2001 From: ATAKAN TEPE Date: Tue, 15 Aug 2023 15:26:49 +0300 Subject: [PATCH] fixed Sidebar: Tailwind transitions do not work for all positions #4272 --- components/lib/passthrough/tailwind/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/passthrough/tailwind/index.js b/components/lib/passthrough/tailwind/index.js index 696d969f8..ebe6b3282 100644 --- a/components/lib/passthrough/tailwind/index.js +++ b/components/lib/passthrough/tailwind/index.js @@ -523,7 +523,7 @@ export default { sidebar: { root: ({ props }) => ({ class: [ - 'flex flex-col pointer-events-auto relative transform translate-x-0 translate-y-0 translate-z-0 relative transition-transform duration-300', + 'flex flex-col pointer-events-auto relative transition-transform duration-300', 'bg-white text-gray-700 border-0 shadow-lg', { '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full', @@ -573,7 +573,7 @@ export default { : props.position === 'right' ? { enterFromClass: 'translate-x-full translate-y-0 translate-z-0', - leaveToClass: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0' + leaveToClass: 'translate-x-full translate-y-0 translate-z-0' } : { enterFromClass: 'opacity-0',