From c8c3d6c3a337f308dc53328313bfb3eee0ad3606 Mon Sep 17 00:00:00 2001
From: illia-prokopchuk <78905712+illia-prokopchuk@users.noreply.github.com>
Date: Fri, 1 Nov 2024 13:34:25 +0200
Subject: [PATCH] Fix [Monitor Jobs] results columns are too wide when result
it long (#2851)
---
.../DetailsResults/DetailsResults.js | 95 +++++++++++--------
src/utils/resultsTable.js | 2 +
2 files changed, 56 insertions(+), 41 deletions(-)
diff --git a/src/components/DetailsResults/DetailsResults.js b/src/components/DetailsResults/DetailsResults.js
index 88cf1f132..bc277d63c 100644
--- a/src/components/DetailsResults/DetailsResults.js
+++ b/src/components/DetailsResults/DetailsResults.js
@@ -52,36 +52,39 @@ const DetailsResults = ({
sortConfig: { allowSortBy, excludeSortBy, defaultSortBy, defaultDirection }
})
- const getHeaderCellClasses = (headerId, isSortable) =>
+ const getHeaderCellClasses = (headerId, isSortable, customClassName = '') =>
classNames(
'table-header__cell',
isSortable && 'sortable-header-cell',
- isSortable && selectedColumnName === headerId && 'sortable-header-cell_active'
+ isSortable && selectedColumnName === headerId && 'sortable-header-cell_active',
+ customClassName
)
const getHeaderTemplate = () => {
return (
-
-
- {sortedTableHeaders.map(({ headerLabel, headerId, isSortable, ...tableItem }) => {
- return (
-
-
+ sortTable(headerId) : null}
- >
-
- )
- })}
-
{cellData.value}
|
+
+ |
+
)
}
})}
-
+ |
+