truncate currency value

This commit is contained in:
tom
2025-10-14 12:16:31 +02:00
parent d15c16ecfe
commit 5f6fdeb32f
+1 -1
View File
@@ -37,7 +37,7 @@ const CurrencyValue = ({ value, currency = '', decimals, exchangeRate, className
const { valueCurr, valueStr: valueResult, usd: usdResult } = getCurrencyValue({ value, accuracy, accuracyUsd, exchangeRate, decimals });
const valueElement = (
<chakra.span display="inline-block">
<chakra.span display="inline-block" maxW="100%" whiteSpace="pre" overflow="hidden" textOverflow="ellipsis">
{ valueResult }{ currency ? ` ${ currency }` : '' }
</chakra.span>
);