From 161f630fd8b8a361471b1e402d662d4ce8480cd5 Mon Sep 17 00:00:00 2001
From: Fringg
Date: Fri, 24 Apr 2026 16:16:31 +0300
Subject: [PATCH] =?UTF-8?q?fix:=20bulk=20actions=20=E2=80=94=20modal=20tou?=
=?UTF-8?q?ch=20targets,=20deleteFromPanel=20reset,=20remove=20dupe=20spac?=
=?UTF-8?q?er?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Modal close button: 28px → 44px touch target
- deleteFromPanel checkbox: 20px → 24px + 44px label row
- Confirm/cancel buttons: add min-h-[44px]
- Reset deleteFromPanel to true when modal reopens
- Remove duplicate bottom spacer (h-20)
---
src/pages/AdminBulkActions.tsx | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/src/pages/AdminBulkActions.tsx b/src/pages/AdminBulkActions.tsx
index 1619529..e091aed 100644
--- a/src/pages/AdminBulkActions.tsx
+++ b/src/pages/AdminBulkActions.tsx
@@ -779,6 +779,13 @@ function ActionModal({
}
}, [promoGroups, promoGroupId]);
+ // Reset deleteFromPanel to default when modal opens
+ useEffect(() => {
+ if (modal.open && modal.action === 'delete_user') {
+ setDeleteFromPanel(true);
+ }
+ }, [modal.open, modal.action]);
+
// Escape key handler — only when not loading
useEffect(() => {
if (!modal.open) return;
@@ -997,11 +1004,11 @@ function ActionModal({
{t('admin.bulkActions.deleteUser.hint')}
-