From c630fb4eda84431fd648b52cea29498e696e30ab Mon Sep 17 00:00:00 2001 From: vetalcore Date: Mon, 28 Oct 2024 16:17:49 +0200 Subject: [PATCH] fix: [lw-11747] add line clamp styling for tockens and collectibles --- packages/nami/src/ui/app/components/asset.tsx | 8 +++++++- packages/nami/src/ui/app/components/collectible.tsx | 8 +++++++- .../src/ui/app/components/collectiblesViewer.tsx | 8 +++++++- packages/nami/src/ui/app/components/styles.css | 12 ------------ 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/packages/nami/src/ui/app/components/asset.tsx b/packages/nami/src/ui/app/components/asset.tsx index 8b16d5733..45587328b 100644 --- a/packages/nami/src/ui/app/components/asset.tsx +++ b/packages/nami/src/ui/app/components/asset.tsx @@ -33,6 +33,12 @@ const useIsMounted = () => { return isMounted; }; +const lineClampStyle = { + display: '-webkit-box', + '-webkit-line-clamp': '2', + '-webkit-box-orient': 'vertical', +}; + type Props = Pick & PropsWithChildren<{ asset: NamiAsset; @@ -128,8 +134,8 @@ const Asset = ({ { return isMounted; }; +const lineClampStyle = { + display: '-webkit-box', + '-webkit-line-clamp': '3', + '-webkit-box-orient': 'vertical', +}; + const CollectibleComponent = ({ asset, ...props }, ref) => { const capture = useCaptureEvent(); const background = useColorModeValue('gray.300', 'white'); @@ -103,7 +109,7 @@ const CollectibleComponent = ({ asset, ...props }, ref) => { > void; @@ -221,7 +227,7 @@ export const CollectibleModalComponent = (