From 786c1dec28c615dc347ba2e5f8fd96eb3d52e013 Mon Sep 17 00:00:00 2001 From: npiyush97 Date: Thu, 9 May 2024 19:30:49 +0530 Subject: [PATCH] clamp 1 by default no need for whitespace Signed-off-by: npiyush97 --- .../src/components/OverflowTooltip/OverflowTooltip.tsx | 2 +- plugins/catalog-react/src/components/EntityTable/columns.tsx | 2 +- plugins/catalog/src/components/CatalogTable/columns.tsx | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core-components/src/components/OverflowTooltip/OverflowTooltip.tsx b/packages/core-components/src/components/OverflowTooltip/OverflowTooltip.tsx index ab45d87d33..f0799b0d69 100644 --- a/packages/core-components/src/components/OverflowTooltip/OverflowTooltip.tsx +++ b/packages/core-components/src/components/OverflowTooltip/OverflowTooltip.tsx @@ -38,7 +38,7 @@ const useStyles = makeStyles( overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box', - '-webkit-line-clamp': ({ line }: Props) => line, + '-webkit-line-clamp': ({ line }: Props) => line || 1, '-webkit-box-orient': 'vertical', }, }, diff --git a/plugins/catalog-react/src/components/EntityTable/columns.tsx b/plugins/catalog-react/src/components/EntityTable/columns.tsx index e98c603d71..292235c78c 100644 --- a/plugins/catalog-react/src/components/EntityTable/columns.tsx +++ b/plugins/catalog-react/src/components/EntityTable/columns.tsx @@ -141,7 +141,7 @@ export const columnFactories = Object.freeze({ ), }; diff --git a/plugins/catalog/src/components/CatalogTable/columns.tsx b/plugins/catalog/src/components/CatalogTable/columns.tsx index 5d2f9146d9..d5362badda 100644 --- a/plugins/catalog/src/components/CatalogTable/columns.tsx +++ b/plugins/catalog/src/components/CatalogTable/columns.tsx @@ -141,7 +141,6 @@ export const columnFactories = Object.freeze({ ), width: 'auto',