diff --git a/links/templates/links/mini_apps/image_gallery.html b/links/templates/links/mini_apps/image_gallery.html index 9d83144..e7ef006 100644 --- a/links/templates/links/mini_apps/image_gallery.html +++ b/links/templates/links/mini_apps/image_gallery.html @@ -615,8 +615,14 @@ // Get image URL based on source function getImageUrl() { - const width = window.innerWidth; - const height = window.innerHeight; + var width = window.innerWidth; + if (width < 300) { + width = 300; // Minimum width + } + var height = window.innerHeight; + if (height < 300) { + height = 300; // Minimum height + } if (config.imageSource === 'picsum') { const imageId = getRandomImageId();