Better gallery on mobile

This commit is contained in:
space-nuko
2023-05-08 21:54:18 -05:00
parent 4ec172be36
commit 2df43c6b04
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@
};
let style: Styles = {
grid_cols: [3],
grid_cols: [isMobile ? 2 : 3],
object_fit: "cover",
}
let element: HTMLDivElement;
@@ -90,7 +90,7 @@
thumbs: images.map(i => i.url),
type: 'popup',
});
mobileLightbox.open()
mobileLightbox.open(selected_image)
event.stopPropagation()
}