simplify motion grid layout

This commit is contained in:
Nicolas Mowen 2024-06-07 08:25:20 -06:00 committed by GitHub
parent 804edceec2
commit 6c21cfa193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -878,12 +878,7 @@ function MotionReview({
ref={contentRef} ref={contentRef}
className={cn( className={cn(
"no-scrollbar grid w-full grid-cols-1", "no-scrollbar grid w-full grid-cols-1",
isMobile && "landscape:grid-cols-2", "gap-2 overflow-auto px-1 md:mx-2 md:gap-4 sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4",
reviewCameras.length > 3 &&
isMobile &&
"portrait:md:grid-cols-2 landscape:md:grid-cols-3",
isDesktop && "md:grid-cols-3",
"gap-2 overflow-auto px-1 md:mx-2 md:gap-4 xl:grid-cols-3 3xl:grid-cols-4",
)} )}
> >
{reviewCameras.map((camera) => { {reviewCameras.map((camera) => {