Skip to content

Commit

Permalink
fix: long token names breaking ui
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Jan 3, 2025
1 parent eec3ed6 commit 3f5e189
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
<img :src="token.icon" @error="imageLoadError" />
</div>
<div class="assets-select-list__token-info-name">
<h4>{{ token.name }}</h4>
<h4>
{{
token.name.length > 25
? token.name.substring(0, 25) + '...'
: token.name
}}
</h4>
<p>
{{ balance ? $filters.formatFloatingPointValue(balance).value : '~' }}
<span>{{ token.symbol }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
<img :src="token.logoURI" alt="" @error="imageLoadError" />
</div>
<div class="swap-token-select__info">
<h5>{{ token.name }}</h5>
<h5>
{{
token.name.length > 25
? token.name.substring(0, 25) + '...'
: token.name
}}
</h5>
<p>
{{
tokenBalance
Expand Down

0 comments on commit 3f5e189

Please sign in to comment.