Display ... for address summary overflows (#4691)
This commit is contained in:
parent
689fe9c689
commit
1b8a47fa4a
@ -22,7 +22,7 @@ import { isEqual } from 'lodash';
|
|||||||
import ReactTooltip from 'react-tooltip';
|
import ReactTooltip from 'react-tooltip';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { Balance, Container, ContainerTitle, IdentityIcon, IdentityName, Tags, Input } from '~/ui';
|
import { Balance, Container, ContainerTitle, CopyToClipboard, IdentityIcon, IdentityName, Tags } from '~/ui';
|
||||||
import Certifications from '~/ui/Certifications';
|
import Certifications from '~/ui/Certifications';
|
||||||
import { arrayOrObjectProptype, nullableProptype } from '~/util/proptypes';
|
import { arrayOrObjectProptype, nullableProptype } from '~/util/proptypes';
|
||||||
|
|
||||||
@ -101,15 +101,6 @@ class Summary extends Component {
|
|||||||
|
|
||||||
const { address } = account;
|
const { address } = account;
|
||||||
|
|
||||||
const addressComponent = (
|
|
||||||
<Input
|
|
||||||
readOnly
|
|
||||||
hideUnderline
|
|
||||||
value={ address }
|
|
||||||
allowCopy={ address }
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
className={ styles.account }
|
className={ styles.account }
|
||||||
@ -133,7 +124,12 @@ class Summary extends Component {
|
|||||||
address={ address }
|
address={ address }
|
||||||
/>
|
/>
|
||||||
<ContainerTitle
|
<ContainerTitle
|
||||||
byline={ addressComponent }
|
byline={
|
||||||
|
<div className={ styles.addressline }>
|
||||||
|
<CopyToClipboard data={ address } />
|
||||||
|
<div className={ styles.address }>{ address }</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
className={
|
className={
|
||||||
noLink
|
noLink
|
||||||
? styles.main
|
? styles.main
|
||||||
|
@ -23,6 +23,19 @@
|
|||||||
.account {
|
.account {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
.addressline {
|
||||||
|
display: flex;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
.address {
|
||||||
|
display: inline-block;
|
||||||
|
flex: 1;
|
||||||
|
margin-left: 0.5em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.blockDescription {
|
.blockDescription {
|
||||||
color: rgba(255, 255, 255, 0.25);
|
color: rgba(255, 255, 255, 0.25);
|
||||||
margin-top: 1.5em;
|
margin-top: 1.5em;
|
||||||
@ -95,10 +108,12 @@
|
|||||||
.heading {
|
.heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.main,
|
.main,
|
||||||
.mainLink {
|
.mainLink {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainLink h3 {
|
.mainLink h3 {
|
||||||
|
Loading…
Reference in New Issue
Block a user