Fix Copy overlap on accounts (#4611)

This commit is contained in:
Jaco Greeff 2021-02-05 11:30:26 +01:00 committed by GitHub
parent 6d79a4a041
commit 75a1021728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,17 +337,17 @@ function Create ({ className = '', onClose, onStatusChange, seed: propsSeed, typ
seed={seed}
withLabel
>
<CopyButton
className='copyMoved'
type={seedType === 'bip' ? t<string>('mnemonic') : seedType === 'raw' ? isEthereum ? t<string>('private key') : 'seed' : t<string>('raw seed')}
value={seed}
/>
<Dropdown
defaultValue={seedType}
isButton
onChange={_selectSeedType}
options={seedOpt.current}
/>
<CopyButton
className='copyMoved'
type={seedType === 'bip' ? t<string>('mnemonic') : seedType === 'raw' ? isEthereum ? t<string>('private key') : 'seed' : t<string>('raw seed')}
value={seed}
/>
</TextArea>
</Modal.Column>
<Modal.Column>
@ -524,10 +524,10 @@ export default React.memo(styled(Create)(({ theme }: ThemeProps) => `
overflow: visible;
}
.copyMoved {
.ui--CopyButton.copyMoved {
position: absolute;
right: 9.1rem;
top: 1.25rem;
right: 9.25rem;
top: 1.15rem;
}
&& .TextAreaWithDropdown {