Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

GDGT-1852 fix ui issues in Data Summary tab in Transform Inspector (#70150)

Egor Grushine53f226b40aa
diff --git a/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/GenericSummarySection.tsx b/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/GenericSummarySection.tsx
index f31eea53e77..1b835436ef3 100644
--- a/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/GenericSummarySection.tsx
+++ b/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/GenericSummarySection.tsx
@@ -1,6 +1,7 @@
import { useMemo } from "react";
import { msgid, ngettext, t } from "ttag";
+import { Ellipsified } from "metabase/common/components/Ellipsified";
import {
Box,
Card,
@@ -66,7 +67,9 @@ export const GenericSummarySection = ({
original.card.metadata.table_id,
[...sources, target].filter((t) => t !== undefined),
),
- cell: (props) => <Text>{String(props.getValue() ?? "-")}</Text>,
+ cell: (props) => (
+ <Ellipsified>{String(props.getValue() ?? "-")}</Ellipsified>
+ ),
},
{
id: "row_count",
diff --git a/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/components/RowCountCard.tsx b/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/components/RowCountCard.tsx
index 33526e6ee8b..43ee15d03ca 100644
--- a/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/components/RowCountCard.tsx
+++ b/frontend/src/metabase/transforms/pages/TransformInspectPage/components/LensSections/GenericSummarySections/components/RowCountCard.tsx
@@ -20,9 +20,5 @@ export const RowCountCard = ({ card }: RowCountCardProps) => {
);
}
- return (
- <Text size="sm" ta="right">
- {rowCount?.toString() ?? "-"}
- </Text>
- );
+ return <Text ta="right">{rowCount?.toString() ?? "-"}</Text>;
};