Skip to content

Commit

Permalink
Reduce hidden password length restriction so it is always limited to …
Browse files Browse the repository at this point in the history
…one line
  • Loading branch information
amddg44 committed Apr 3, 2024
1 parent c408327 commit 208fd3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo/AutofillLoginDetailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ private struct CopyableCell: View {
.padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 8))

if secondaryButtonImageName != nil {
Spacer(minLength: Constants.textFieldImageSize * 2)
Spacer(minLength: Constants.textFieldImageSize * 2 + 8)
} else {
Spacer(minLength: buttonImageName != nil ? Constants.textFieldImageSize : 8)
}
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/PasswordHider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Foundation
struct PasswordHider {
let password: String
var hiddenPassword: String {
let maximumPasswordDisplayCount = 40
let maximumPasswordDisplayCount = 22
let passwordCount = password.count > maximumPasswordDisplayCount ? maximumPasswordDisplayCount : password.count
return String(repeating: "", count: passwordCount)
}
Expand Down

0 comments on commit 208fd3f

Please sign in to comment.