From e416a141b027cb924db70a430ffa23b44fdd6371 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 19 Oct 2024 16:35:35 +0200 Subject: [PATCH] Handle typography with more than 2 lines --- src/modules/core/components/TypographyMaxLines.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/core/components/TypographyMaxLines.tsx b/src/modules/core/components/TypographyMaxLines.tsx index f40b5690..74fbbb36 100644 --- a/src/modules/core/components/TypographyMaxLines.tsx +++ b/src/modules/core/components/TypographyMaxLines.tsx @@ -18,7 +18,7 @@ export const TypographyMaxLines = styled(Typography, { shouldForwardProp: shouldForwardProp(['lines']), })(({ lines = 2 }) => ({ lineHeight: '1.5rem', - maxHeight: '3rem', + maxHeight: `${3 * lines}rem`, display: '-webkit-box', WebkitLineClamp: `${lines}`, WebkitBoxOrient: 'vertical',