Skip to content

Commit 6808b8f

Browse files
committed
adjust styling of generate secure password button
1 parent e51e3e4 commit 6808b8f

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

Diff for: frontend/app/templates/components/encryptable/form.hbs

+14-11
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,25 @@
7272
</form.element>
7373
<PasswordStrengthMeter class="col-12 px-0 mb-2 mb-md-0" @password={{this.changeset.cleartextPassword}}/>
7474
<div class="d-flex flex-column border border-mute border-radius-4 p-2">
75-
<label>
76-
Symbols
77-
<Input
78-
id="withSymbols"
79-
@type="checkbox"
80-
@checked={{this.withSymbols}}></Input>
81-
</label>
75+
<div class="ml-2 mt-1">{{t "encryptable/credentials.form.passwordLength"}} </div>
8276
<label for="formControlRange">
8377
{{this.passwordLength}}
8478
<Input @type="range" class="custom-range" id="formControlRange" @value={{this.passwordLength}} min="14" max="32">
8579
</Input>
8680
</label>
87-
<button id="password-generate-button" class="btn btn-secondary btn-block col-lg-7 mb-md-4" {{on "click" this.setRandomPassword}}
88-
tabindex="4">
89-
{{t "encryptable/credentials.edit.random_password"}}
90-
</button>
81+
<div class="d-flex flex-row justify-content-around">
82+
<label>
83+
Symbols
84+
<Input
85+
id="withSymbols"
86+
@type="checkbox"
87+
@checked={{this.withSymbols}}></Input>
88+
</label>
89+
<button id="password-generate-button" class="btn btn-secondary w-50 btn-sm col-lg-7 mb-md-4" {{on "click" this.setRandomPassword}}
90+
tabindex="4">
91+
{{t "encryptable/credentials.edit.random_password"}}
92+
</button>
93+
</div>
9194
</div>
9295
</div>
9396
</div>

Diff for: frontend/translations/ch_be.yml

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ ch_be:
9090
blank: Läär
9191
new:
9292
title: Nöi Zuägangsdate
93+
form:
94+
passwordLength: "Password Längi: "
9395

9496
admin:
9597
title: Admin

Diff for: frontend/translations/de.yml

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ de:
9090
blank: Leer
9191
new:
9292
title: Neue Zugangsdaten
93+
form:
94+
passwordLength: "Passwortlänge: "
9395

9496
admin:
9597
title: Admin

Diff for: frontend/translations/en.yml

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ en:
9090
blank: none
9191
new:
9292
title: New Credentials
93+
form:
94+
passwordLength: "Password Length: "
9395

9496
admin:
9597
title: Admin

Diff for: frontend/translations/fr.yml

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ fr:
9090
blank: Vide
9191
new:
9292
title: Nouveau compte
93+
form:
94+
passwordLength: "Longueur du mot de passe: "
9395

9496
admin:
9597
title: Admin

0 commit comments

Comments
 (0)