From a51755088b0cf63868a783911c3c27b9e9a56d34 Mon Sep 17 00:00:00 2001 From: pkolt Date: Sat, 27 Dec 2025 17:39:37 +0500 Subject: [PATCH 1/5] Added pico format --- .../components/ExportDialog/index.tsx | 62 ++++--- .../components/ExportDialog/utils.ts | 157 ++++++++++++++---- 2 files changed, 166 insertions(+), 53 deletions(-) diff --git a/src/components/BitmapEditor/components/ExportDialog/index.tsx b/src/components/BitmapEditor/components/ExportDialog/index.tsx index 06178ca..58ab80b 100644 --- a/src/components/BitmapEditor/components/ExportDialog/index.tsx +++ b/src/components/BitmapEditor/components/ExportDialog/index.tsx @@ -114,30 +114,34 @@ export const ExportDialog = ({ bitmapId, area, onClose }: ExportDialogProps): JS /> -
-
-
{t('Size format')}
-
- - - -
-
+ {formValues.platform !== Platform.Pico && ( + <> +
+
+
{t('Size format')}
+
+ + + +
+
+ + )}
{t('Platform')}
@@ -153,9 +157,17 @@ export const ExportDialog = ({ bitmapId, area, onClose }: ExportDialogProps): JS type="radio" {...register('platform', { required: true })} /> +

- + {formValues.platform !== Platform.Pico && ( + + )}