Do not allow images sizes below 1 x 1 px

This commit is contained in:
javl
2026-08-15 09:53:16 +02:00
parent 1330a07d65
commit ab3d396d3f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -702,7 +702,7 @@ function handleImageSelection(evt) {
w.type = 'number';
w.name = 'width';
w.id = 'screenWidth';
w.min = 0;
w.min = 1;
w.className = 'size-input';
w.value = img.width;
settings.screenWidth = img.width;
@@ -716,7 +716,7 @@ function handleImageSelection(evt) {
h.type = 'number';
h.name = 'height';
h.id = 'screenHeight';
h.min = 0;
h.min = 1;
h.className = 'size-input';
h.value = img.height;
settings.screenHeight = img.height;