From 38ece61b318dd394c454726d531be4d7bc977d5a Mon Sep 17 00:00:00 2001 From: shats Date: Mon, 16 Feb 2026 17:42:57 +0700 Subject: [PATCH] refactor(Managers): standardize button group styling and layout across ASNs, Domains, and IPRanges managers for improved UI consistency and user experience --- frontend/src/ASNsNewManager.jsx | 69 ++++++++++++++------------ frontend/src/DomainsNewManager.jsx | 20 ++------ frontend/src/IPRangesManager.jsx | 78 +++++++++++++++--------------- 3 files changed, 81 insertions(+), 86 deletions(-) diff --git a/frontend/src/ASNsNewManager.jsx b/frontend/src/ASNsNewManager.jsx index 033cf4c..005585d 100644 --- a/frontend/src/ASNsNewManager.jsx +++ b/frontend/src/ASNsNewManager.jsx @@ -769,37 +769,44 @@ function ASNsNewManager() { {renderCommunityBadge(item.community)} - {editingAsn === item.asn ? ( - <> - handleEditKeyDown(e, item.asn)} - className={`form-control d-inline-block me-2${isValidCommunity(editingValue) ? '' : ' is-invalid'}`} - style={{ width: '150px' }} - useShortValue={true} - /> - - - - - - - - ) : ( - <> - - - - - - - - - - - )} +
+ {editingAsn === item.asn ? ( + <> + handleEditKeyDown(e, item.asn)} + className={`form-control d-inline-block me-2${isValidCommunity(editingValue) ? '' : ' is-invalid'}`} + style={{ width: '150px' }} + useShortValue={true} + /> + + + + + + + + ) : ( + <> + + + + + + + + )} +
))} diff --git a/frontend/src/DomainsNewManager.jsx b/frontend/src/DomainsNewManager.jsx index 54de9da..c5b2e23 100644 --- a/frontend/src/DomainsNewManager.jsx +++ b/frontend/src/DomainsNewManager.jsx @@ -771,7 +771,7 @@ function DomainsNewManager() { -
+
{editingDomain === item.domain ? ( <> - - - - - - - - - ) : ( - <> - - - - - - - - - - - )} +
+ {editingIp === item.ipRange ? ( + <> + handleEditKeyDown(e, item.ipRange)} + useShortValue={true} + /> + + + + + + + + ) : ( + <> + + + + + + + + )} +
))} @@ -1054,15 +1061,6 @@ function IPRangesManager() { />
- {/* Пагинация */} - -