Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Adjust find in page bar and fix gap from the keyboard/toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed May 4, 2021
1 parent fc1b5b4 commit 602a48a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Client/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1168,14 +1168,12 @@ class BrowserViewController: UIViewController {
make.centerX.equalTo(self.view)
make.width.equalTo(self.view.safeArea.width)
if let keyboardHeight = keyboardState?.intersectionHeightForView(self.view), keyboardHeight > 0 {
make.bottom.equalTo(self.view).offset(-keyboardHeight - 10)
make.bottom.equalTo(self.view).offset(-keyboardHeight)
} else if let toolbar = self.toolbar {
make.bottom.lessThanOrEqualTo(toolbar.snp.top)
.offset(-10)
make.bottom.lessThanOrEqualTo(self.view.safeArea.bottom)
.offset(-10)
} else {
make.bottom.equalTo(self.view.safeArea.bottom).offset(-10)
make.bottom.equalTo(self.view.safeArea.bottom)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Client/Frontend/Browser/FindInPageBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class FindInPageBar: UIView {
searchText.accessibilityIdentifier = "FindInPage.searchField"
addSubview(searchText)

matchCountView.textColor = .braveLabel
matchCountView.textColor = .secondaryBraveLabel
matchCountView.font = FindInPageUX.matchCountFont
matchCountView.isHidden = true
matchCountView.accessibilityIdentifier = "FindInPage.matchCount"
Expand Down

0 comments on commit 602a48a

Please # to comment.