1 ? "grid-cols-3 gap-1.5 min-h-[24vw]" : "grid-cols-1 min-h-[38vw]"
+ className={`${
+ currentPhotos.length > 1 ? "grid grid-cols-3 gap-1.5 min-h-[24vw]" : "min-h-[38vw] w-max"
}`}
>
{currentPhotos.map((item, index) => {
return (
1 ? "h-[24vw]" : ""} `}
style={{ maxWidth: "calc(100vw - 72px)" }}
key={index}
onClick={() => {
@@ -242,7 +242,7 @@ export default function Photos({
{
1 ? "min-h-[24vw]" : "max-h-[38vw]"
+ currentPhotos.length > 1 ? "h-[24vw]" : "auto"
}`}
>
}
- width={currentPhotos.length > 1 ? "24vw" : "auto"}
- height={currentPhotos.length > 1 ? "24vw" : "38vw"}
+ width={currentPhotos.length > 1 ? "24vw" : "36vw"}
+ height={currentPhotos.length > 1 ? "24vw" : "100%"}
className={`rounded max-w-full ${
item?.type == "hid" && type == "space" ? "imageBlur" : ""
}`}