mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix edit text
and edit label alighment
This commit is contained in:
parent
1987296af0
commit
7d8bf31e82
@ -101,7 +101,7 @@ AccountDetailScreen.prototype.render = function() {
|
||||
|
||||
// What is shown when not editing + edit text:
|
||||
h('label.editing-label',[h('.edit-text','edit')]),
|
||||
h('h2.font-medium.color-forest', {title: 'edit'}, identity && identity.name)
|
||||
h('h2.font-medium.color-forest', {name: 'edit'}, identity && identity.name),
|
||||
]),
|
||||
]),
|
||||
|
||||
|
@ -30,7 +30,7 @@ EditableLabel.prototype.render = function() {
|
||||
])
|
||||
|
||||
} else {
|
||||
return h('div', {
|
||||
return h('div.name-label', {
|
||||
onClick:(event) => {
|
||||
this.setState({ isEditingLabel: true })
|
||||
},
|
||||
|
@ -367,20 +367,19 @@ input.large-input {
|
||||
}
|
||||
|
||||
.edit-text {
|
||||
height: 15px;
|
||||
height: 100%;
|
||||
visibility: hidden;
|
||||
}
|
||||
.editing-label {
|
||||
cursor: text;
|
||||
width: 60px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
top: 7px;
|
||||
text-align: right;
|
||||
font-size: small;
|
||||
padding-top: 15px;
|
||||
color: #F7861C;
|
||||
}
|
||||
.editing-label:hover div{
|
||||
.name-label:hover .edit-text {
|
||||
visibility: visible;
|
||||
}
|
||||
/* tx confirm */
|
||||
|
Loading…
Reference in New Issue
Block a user