fix design side bar on scroll

This commit is contained in:
Ehsan
2024-10-20 22:10:44 +03:30
parent 46c33c6eb9
commit 804c9f96dd
+3 -3
View File
@@ -15,10 +15,10 @@ function Sidebar({
// ${open ? 'md:w-[39%]' : 'min-w-[80px]'}
<div
className={`
md:block absolute md:relative flex-1 z-[7] w-full sm:bg-[#FAFAFA] sm:px-[24px] md:w-[32%] lg:w-[28%]
md:block fixed md:relative flex-1 z-[7] w-full sm:bg-[#FAFAFA] sm:px-[24px] md:w-[32%] lg:w-[28%]
bg-[#FAFAFA] padding-responsive transition-all duration-700
h-screen md:h-auto pt-[24px] md:pt-0
z-5 top-[60px] sm:top-[77px] md:top-0 md:px-0
h-screen md:h-auto pt-[36px] md:pt-0
z-5 top-[48px] sm:top-[52px] md:top-0 md:px-0
${isOpenSide ? "right-0" : "md:flex -right-full md:right-0"}
`}
>