Commit 68d81a00 authored by lynn's avatar lynn Committed by GitHub

fix: txn header styling for long ens names (#5872)

done fix
parent 53caa51a
...@@ -126,15 +126,6 @@ const FiatOnrampAvailabilityExternalLink = styled(ExternalLink)` ...@@ -126,15 +126,6 @@ const FiatOnrampAvailabilityExternalLink = styled(ExternalLink)`
margin-left: 6px; margin-left: 6px;
width: 14px; width: 14px;
` `
const FlexContainer = styled.div`
display: flex;
`
const StatusWrapper = styled.div`
display: inline-block;
margin-top: 4px;
width: 70%;
`
const TruncatedTextStyle = css` const TruncatedTextStyle = css`
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -142,8 +133,14 @@ const TruncatedTextStyle = css` ...@@ -142,8 +133,14 @@ const TruncatedTextStyle = css`
white-space: nowrap; white-space: nowrap;
` `
const AccountNamesWrapper = styled.div` const FlexContainer = styled.div`
${TruncatedTextStyle} ${TruncatedTextStyle}
padding-right: 4px;
display: inline-flex;
`
const AccountNamesWrapper = styled.div`
min-width: 0;
margin-right: 8px; margin-right: 8px;
` `
...@@ -280,7 +277,6 @@ const AuthenticatedHeader = () => { ...@@ -280,7 +277,6 @@ const AuthenticatedHeader = () => {
return ( return (
<> <>
<HeaderWrapper> <HeaderWrapper>
<StatusWrapper>
<FlexContainer> <FlexContainer>
<StatusIcon connectionType={connectionType} size={24} /> <StatusIcon connectionType={connectionType} size={24} />
{ENSName ? ( {ENSName ? (
...@@ -292,7 +288,6 @@ const AuthenticatedHeader = () => { ...@@ -292,7 +288,6 @@ const AuthenticatedHeader = () => {
<ThemedText.SubHeader marginTop="2.5px">{account && shortenAddress(account, 2, 4)}</ThemedText.SubHeader> <ThemedText.SubHeader marginTop="2.5px">{account && shortenAddress(account, 2, 4)}</ThemedText.SubHeader>
)} )}
</FlexContainer> </FlexContainer>
</StatusWrapper>
<IconContainer> <IconContainer>
<IconButton onClick={copy} Icon={Copy}> <IconButton onClick={copy} Icon={Copy}>
{isCopied ? <Trans>Copied!</Trans> : <Trans>Copy</Trans>} {isCopied ? <Trans>Copied!</Trans> : <Trans>Copy</Trans>}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment