Skip to content

Commit

Permalink
Truncate long text in BotCard component
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Aug 16, 2024
1 parent f26fa7f commit a8bf56c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function Card({ data, overridedSort }) {
{infos.filter(info => info.condition === true).map(info => (
<div key={info.icon} className='flex gap-x-1.5 items-center text-sm'>
<info.icon className='text-tertiary' />
<span className='text-secondary'>{info.transform ? info.transform(info.value) : formatter.format(info.value)}</span>
<span className='truncate max-w-[115px] text-secondary'>{info.transform ? info.transform(info.value) : formatter.format(info.value)}</span>
</div>
))}
</div>
Expand Down

0 comments on commit a8bf56c

Please sign in to comment.