From 6e33ad943fc0622c4d35b8b3183c063e8a5a9a8a Mon Sep 17 00:00:00 2001 From: achichenkov Date: Mon, 7 Oct 2024 10:24:54 +0300 Subject: [PATCH] feat(Map): Fix default sort Fixes #22 --- assets/js/hooks/Mapper/common-styles/fixes.scss | 2 +- .../SystemSignaturesContent/SystemSignaturesContent.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/hooks/Mapper/common-styles/fixes.scss b/assets/js/hooks/Mapper/common-styles/fixes.scss index 10ed8df7..bf5cb4e6 100644 --- a/assets/js/hooks/Mapper/common-styles/fixes.scss +++ b/assets/js/hooks/Mapper/common-styles/fixes.scss @@ -74,7 +74,7 @@ } .p-selectable-row td { - padding: 8px 4px; + padding: 4px 4px; } .p-sortable-column > .p-column-header-content > span:last-child { diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx index 7b303810..5748ba74 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx @@ -34,8 +34,8 @@ type SystemSignaturesSortSettings = { }; const SORT_DEFAULT_VALUES: SystemSignaturesSortSettings = { - sortField: 'eve_id', - sortOrder: 1, + sortField: 'updated_at', + sortOrder: -1, }; interface SystemSignaturesContentProps { @@ -226,7 +226,7 @@ export const SystemSignaturesContent = ({ systemId, settings }: SystemSignatures bodyClassName="p-0 px-1" field="group" body={renderIcon} - style={{ maxWidth: 26, minWidth: 26, width: 26 }} + style={{ maxWidth: 26, minWidth: 26, width: 26, height: 25 }} >