Adjust extrinsic hash formatting (#992)

This commit is contained in:
Jaco Greeff 2019-04-12 12:52:48 +02:00 committed by GitHub
parent 707ae0b696
commit d9d6364a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ import styled from 'styled-components';
import { Method, getTypeDef } from '@polkadot/types';
import Params from '@polkadot/ui-params';
import Labelled from './Labelled';
import Static from './Static';
import { classes } from './util';
export type Props = BareProps & {
@ -19,10 +19,11 @@ export type Props = BareProps & {
};
const Wrapper = styled.div`
.hash {
opacity: 0.5;
.hash .ui--Static {
overflow: hidden;
text-overflow: ellipsis;
word-break: unset;
word-wrap: unset;
}
`;
@ -47,13 +48,7 @@ export default class Call extends React.PureComponent<Props> {
{children}
{
hash
? (
<Labelled label='extrinsic hash'>
<div className='hash'>
{hash.toHex()}
</div>
</Labelled>
)
? <Static className='hash' label='extrinsic hash'>{hash.toHex()}</Static>
: null
}
<Params