From e7328d9d2bb751f35a140d91f01c07927953c7c9 Mon Sep 17 00:00:00 2001 From: Panfilov Konstantin Date: Thu, 15 Oct 2026 00:01:14 +0300 Subject: [PATCH] ui: compact visible format list --- components/form.php | 17 ++++++----------- tests/check-visible-format-list.php | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 tests/check-visible-format-list.php diff --git a/components/form.php b/components/form.php index a615041..5381164 100644 --- a/components/form.php +++ b/components/form.php @@ -20,17 +20,12 @@ $redirectUrlUtm = $redirect_url_utm ?? '';
:
-
png
-
jpeg
-
jpg
-
webp
-
heic
-
gif
-
tiff
-
bmp
-
avif
-
jxl
-
dng
+
JPG
+
PNG
+
HEIC
+
WebP
+
GIF
+
+много
diff --git a/tests/check-visible-format-list.php b/tests/check-visible-format-list.php new file mode 100644 index 0000000..47b8b57 --- /dev/null +++ b/tests/check-visible-format-list.php @@ -0,0 +1,21 @@ +([^<]+)<\\/div>/', $form, $formatMatches); +$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', '+много']; +if ($formatMatches[1] !== $visibleFormats) { + fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n"); + exit(1); +} + +echo "OK: Preland показывает утверждённый компактный список форматов\n";