Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #48 from LiskHQ/15_fix-cmd-a-passphrase
Browse files Browse the repository at this point in the history
Fix new passphrase autofocus - Closes #15
  • Loading branch information
karmacoma authored Mar 7, 2017
2 parents 1269c09 + 126e605 commit b8fa230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/app/components/login/save.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
font-size: 150%;
margin-bottom: 30px;
border: 0;
width: 1000px;
max-width: 100%;
}

.missing {
Expand All @@ -13,10 +15,10 @@
}
}

@media (min-width: 850px) {
@media (max-width: 550px) {
.dialog-save {
.passphrase {
width: 800px;
height: 6em;
}
}
}
6 changes: 3 additions & 3 deletions src/app/components/login/save.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ md-dialog.dialog-save(aria-label='Save your passphrase in a safe place!')
md-dialog-content
.md-dialog-content
div(ng-if="!$ctrl.enter")
textarea.passphrase(ng-bind='$ctrl.passphrase', autofocus)
textarea.passphrase(ng-bind='$ctrl.passphrase', md-autofocus)
div(ng-if="$ctrl.enter")
p.passphrase
span {{ $ctrl.pre }}
Expand All @@ -20,5 +20,5 @@ md-dialog.dialog-save(aria-label='Save your passphrase in a safe place!')
md-dialog-actions(layout='row')
md-button(ng-click="$ctrl.close()") Close
span(flex)
md-button(ng-click="$ctrl.next()", md-autofocus, ng-show='!$ctrl.enter') Yes! It's safe!
md-button(ng-click="$ctrl.ok()", md-autofocus, ng-show='$ctrl.enter', ng-disabled='!$ctrl.missing_ok') OK
md-button(ng-click="$ctrl.next()", ng-show='!$ctrl.enter') Yes! It's safe!
md-button(ng-click="$ctrl.ok()", ng-show='$ctrl.enter', ng-disabled='!$ctrl.missing_ok') OK

0 comments on commit b8fa230

Please sign in to comment.