1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

fixes for changing generator length

This commit is contained in:
Kyle Spearrin
2019-04-15 22:34:22 -04:00
parent a25ceb49ce
commit 9539662166
4 changed files with 10 additions and 3 deletions

2
jslib

Submodule jslib updated: 0b0245b90f...d3a2dfe2e8

View File

@@ -64,7 +64,7 @@
<div class="box-content-row box-content-row-slider" appBoxRow>
<label for="length">{{'length' | i18n}}</label>
<input id="length" type="number" min="5" max="128" [(ngModel)]="options.length"
(blur)="saveOptions()">
(change)="lengthChanged()" (blur)="saveOptions()">
<input id="lengthRange" type="range" min="5" max="128" step="1" [(ngModel)]="options.length"
(change)="sliderChanged()" (input)="sliderInput()">
</div>

View File

@@ -37,6 +37,10 @@ export class PasswordGeneratorComponent extends BasePasswordGeneratorComponent {
this.close();
}
lengthChanged() {
document.getElementById('length').focus();
}
close() {
this.location.back();
}

View File

@@ -11,8 +11,11 @@ app-sync {
app-password-generator .password-block {
font-size: $font-size-large;
font-family: $font-family-monospace;
text-align: center;
margin: 20px;
.password-wrapper {
text-align: center;
}
}
app-home {