Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
b4bb3d72
Unverified
Commit
b4bb3d72
authored
Jul 28, 2023
by
Brendan Wong
Committed by
GitHub
Jul 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: text wrap and spacing on mobile TDP (#6909)
fix text wrap and spacing on mobile TDP
parent
3f812f4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
index.tsx
src/components/Tokens/TokenDetails/index.tsx
+11
-3
No files found.
src/components/Tokens/TokenDetails/index.tsx
View file @
b4bb3d72
...
...
@@ -45,12 +45,19 @@ import InvalidTokenDetails from './InvalidTokenDetails'
const
TokenSymbol
=
styled
.
span
`
text-transform: uppercase;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
margin-left: 8px;
`
const
TokenActions
=
styled
.
div
`
display: flex;
gap: 16px;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
`
const
TokenTitle
=
styled
.
div
`
display: flex;
@media screen and (max-width:
${({
theme
})
=>
theme
.
breakpoint
.
md
}
px) {
display: inline;
}
`
function
useOnChainToken
(
address
:
string
|
undefined
,
skip
:
boolean
)
{
const
token
=
useTokenFromActiveNetwork
(
skip
||
!
address
?
undefined
:
address
)
...
...
@@ -204,9 +211,10 @@ export default function TokenDetails({
<
TokenInfoContainer
data
-
testid=
"token-info-container"
>
<
TokenNameCell
>
<
CurrencyLogo
currency=
{
detailedToken
}
size=
"32px"
hideL2Icon=
{
false
}
/>
<
TokenTitle
>
{
detailedToken
.
name
??
<
Trans
>
Name not found
</
Trans
>
}
<
TokenSymbol
>
{
detailedToken
.
symbol
??
<
Trans
>
Symbol not found
</
Trans
>
}
</
TokenSymbol
>
</
TokenTitle
>
</
TokenNameCell
>
<
TokenActions
>
<
ShareButton
currency=
{
detailedToken
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment