Fix covered section header in macOS

This commit is contained in:
Mingshen Sun 2023-03-18 16:40:17 -07:00
parent da5aa61986
commit bd659c2fc3
3 changed files with 95 additions and 93 deletions

View file

@ -207,7 +207,12 @@ class PasswordEditorTableViewController: UITableViewController {
override func tableView(_: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if sectionHeaderTitles[section] != nil {
return 30
if UIDevice.current.userInterfaceIdiom == .phone {
return 30
} else {
// Fix covered section header in macOS
return 36
}
} else {
return UITableView.automaticDimension
}