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
68d81a00
Unverified
Commit
68d81a00
authored
Jan 22, 2023
by
lynn
Committed by
GitHub
Jan 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: txn header styling for long ens names (#5872)
done fix
parent
53caa51a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
AuthenticatedHeader.tsx
src/components/WalletDropdown/AuthenticatedHeader.tsx
+18
-23
No files found.
src/components/WalletDropdown/AuthenticatedHeader.tsx
View file @
68d81a00
...
...
@@ -126,15 +126,6 @@ const FiatOnrampAvailabilityExternalLink = styled(ExternalLink)`
margin-left: 6px;
width: 14px;
`
const
FlexContainer
=
styled
.
div
`
display: flex;
`
const
StatusWrapper
=
styled
.
div
`
display: inline-block;
margin-top: 4px;
width: 70%;
`
const
TruncatedTextStyle
=
css
`
text-overflow: ellipsis;
...
...
@@ -142,8 +133,14 @@ const TruncatedTextStyle = css`
white-space: nowrap;
`
const
AccountNamesWrapp
er
=
styled
.
div
`
const
FlexContain
er
=
styled
.
div
`
${
TruncatedTextStyle
}
padding-right: 4px;
display: inline-flex;
`
const
AccountNamesWrapper
=
styled
.
div
`
min-width: 0;
margin-right: 8px;
`
...
...
@@ -280,19 +277,17 @@ const AuthenticatedHeader = () => {
return
(
<>
<
HeaderWrapper
>
<
StatusWrapper
>
<
FlexContainer
>
<
StatusIcon
connectionType=
{
connectionType
}
size=
{
24
}
/>
{
ENSName
?
(
<
AccountNamesWrapper
>
<
ENSNameContainer
>
{
ENSName
}
</
ENSNameContainer
>
<
AccountContainer
>
{
account
&&
shortenAddress
(
account
,
2
,
4
)
}
</
AccountContainer
>
</
AccountNamesWrapper
>
)
:
(
<
ThemedText
.
SubHeader
marginTop=
"2.5px"
>
{
account
&&
shortenAddress
(
account
,
2
,
4
)
}
</
ThemedText
.
SubHeader
>
)
}
</
FlexContainer
>
</
StatusWrapper
>
<
FlexContainer
>
<
StatusIcon
connectionType=
{
connectionType
}
size=
{
24
}
/>
{
ENSName
?
(
<
AccountNamesWrapper
>
<
ENSNameContainer
>
{
ENSName
}
</
ENSNameContainer
>
<
AccountContainer
>
{
account
&&
shortenAddress
(
account
,
2
,
4
)
}
</
AccountContainer
>
</
AccountNamesWrapper
>
)
:
(
<
ThemedText
.
SubHeader
marginTop=
"2.5px"
>
{
account
&&
shortenAddress
(
account
,
2
,
4
)
}
</
ThemedText
.
SubHeader
>
)
}
</
FlexContainer
>
<
IconContainer
>
<
IconButton
onClick=
{
copy
}
Icon=
{
Copy
}
>
{
isCopied
?
<
Trans
>
Copied!
</
Trans
>
:
<
Trans
>
Copy
</
Trans
>
}
...
...
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