search page completed, unit cards skeletons

This commit is contained in:
2025-05-06 18:27:07 +05:00
parent 34e249b8f8
commit b7b318b565
8 changed files with 531 additions and 405 deletions
+7 -1
View File
@@ -58,7 +58,13 @@ function Select({
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.15 }}
className="absolute 2xl:mt-[0.278vw] 2xl:pt-[0.278vw] mt-1 p-1 2xl:space-y-[0.139vw] space-y-0.5 shadow-[0px_2px_8px_rgba(0,0,0,0.15)] rounded-xl bg-white w-full z-10"
ref={(el) => {
if (el)
el.style.maxHeight = `calc(100vh - ${
el?.getBoundingClientRect().y
}px - 0.278vw)`;
}}
className="absolute 2xl:mt-[0.278vw] 2xl:pt-[0.278vw] mt-1 p-1 2xl:space-y-[0.139vw] space-y-0.5 shadow-[0px_2px_8px_rgba(0,0,0,0.15)] overflow-auto rounded-xl bg-white w-full z-10"
>
{options.map((option, index) => (
<button