Don't use grid at all for single column

This commit is contained in:
Nicolas Mowen 2024-02-07 14:37:32 -07:00
parent 3480bcfe1e
commit 374a78c23d

View File

@ -72,7 +72,7 @@ function Live() {
</ScrollArea> </ScrollArea>
)} )}
<div className="mt-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4 gap-4"> <div className="mt-4 md:grid md:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4 gap-4">
{cameras.map((camera) => { {cameras.map((camera) => {
let grow; let grow;
if (camera.detect.width / camera.detect.height > 2) { if (camera.detect.width / camera.detect.height > 2) {