Skip to content

Commit

Permalink
Fixed the 2FA hide CSS since the order of options has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDex committed Nov 25, 2024
1 parent 0a4ffc7 commit 71d90ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/static/templates/scss/vaultwarden.scss.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ app-frontend-layout > app-login > form > div > div > div > p {

/* Hide `Email` 2FA if mail is not enabled */
{{#unless mail_enabled}}
app-two-factor-setup ul.list-group.list-group-2fa li.list-group-item:nth-child(5) {
app-two-factor-setup ul.list-group.list-group-2fa li.list-group-item:nth-child(1) {
@extend %vw-hide;
}
{{/unless}}

/* Hide `YubiKey OTP security key` 2FA if it is not enabled */
{{#unless yubico_enabled}}
app-two-factor-setup ul.list-group.list-group-2fa li.list-group-item:nth-child(2) {
app-two-factor-setup ul.list-group.list-group-2fa li.list-group-item:nth-child(4) {
@extend %vw-hide;
}
{{/unless}}
Expand Down

0 comments on commit 71d90ed

Please sign in to comment.