From 08f9e3965eac3c0fdfdfc49df4cb3e97cd94d9de Mon Sep 17 00:00:00 2001 From: sylenien Date: Tue, 28 Jun 2022 15:24:48 +0200 Subject: [PATCH] fix(ui): fix metric tables height and button placing --- .../CustomMetricTable/CustomMetricTable.tsx | 2 +- frontend/app/components/Dashboard/Widgets/common/Table.js | 7 ++++--- .../components/Dashboard/Widgets/common/table.module.css | 5 ++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx index 272a886f9..a5e8425d4 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx @@ -49,7 +49,7 @@ function CustomMetricTable(props: Props) { onClick(filters); } return ( -
+
(small ? 3 : 5) && !showAll return (
@@ -37,7 +38,7 @@ export default class Table extends React.PureComponent {
{ rows.take(showAll ? rows.size : (small ? 3 : 5)).map(row => (
onRowClick(e, row) : () => null} > @@ -51,8 +52,8 @@ export default class Table extends React.PureComponent {
)) }
- { !isTemplate && rows.size > (small ? 3 : 5) && !showAll && -
+ {isShowMoreButtonVisible && +