clamp 1 by default no need for whitespace

Signed-off-by: npiyush97 <npiyush35@gmail.com>
This commit is contained in:
npiyush97
2024-05-09 19:30:49 +05:30
parent 44fd44dea1
commit 786c1dec28
3 changed files with 2 additions and 3 deletions
@@ -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',
},
},
@@ -141,7 +141,7 @@ export const columnFactories = Object.freeze({
<OverflowTooltip
text={entity.metadata.description}
placement="bottom-start"
line={1}
line={2}
/>
),
};
@@ -141,7 +141,6 @@ export const columnFactories = Object.freeze({
<OverflowTooltip
text={entity.metadata.description}
placement="bottom-start"
line={1}
/>
),
width: 'auto',