1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Align copy tooltip text and icon (#8861)

Add style prop to ReactTippy to override the inline display to flex display and align items to center
This commit is contained in:
Thomas Huang 2020-06-24 15:34:18 -07:00 committed by GitHub
parent 242db43700
commit 85c81a5cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

@ -173,12 +173,12 @@
padding: 5px;
border-radius: 5px;
position: relative;
&-text {
font-size: 0.7em;
height: 115px;
}
&-cover {
background-color: white;
opacity: 0.75;
@ -187,7 +187,7 @@
width: 100%;
top: 0px;
}
&-lock {
position: absolute;
height: 100%;
@ -202,12 +202,12 @@
top: calc(50% - 34px);
border-radius: 3px;
}
&--pressed {
display: none;
}
}
&-lock-text {
width: 200px;
font-size: 0.75em;
@ -219,7 +219,7 @@
line-height: 1em;
border-radius: 3px;
}
&-copy {
justify-content: space-evenly;
font-size: 0.75em;
@ -228,12 +228,12 @@
display: flex;
cursor: pointer;
}
&-copy-text {
margin-right: 10px;
display: inline;
}
&-copy-tooltip {
float: right;
}
@ -258,7 +258,7 @@
margin-right: 1.2rem;
}
}
&__visual {
display: flex;
flex-direction: row;

View File

@ -268,6 +268,7 @@ export default class ConfirmDecryptMessage extends Component {
position="bottom"
title={hasCopied ? t('copiedExclamation') : t('copyToClipboard')}
wrapperClassName="request-decrypt-message__message-copy-tooltip"
style={{ display: 'flex', alignItems: 'center' }}
>
<div
className="request-decrypt-message__message-copy-text"