mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-02-17 05:12:02 +00:00
Settings: limit size of logo
This commit is contained in:
parent
074e5e7063
commit
b3b63b5f5d
@ -165,7 +165,7 @@ extension SettingsTableViewController {
|
|||||||
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
|
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
|
||||||
guard (section == 1) else { return 0 }
|
guard (section == 1) else { return 0 }
|
||||||
guard let imageSize = self.wireguardCaptionedImage?.size else { return 0 }
|
guard let imageSize = self.wireguardCaptionedImage?.size else { return 0 }
|
||||||
return (min(tableView.bounds.width, 480) / imageSize.width) * imageSize.height
|
return min(tableView.rowHeight * 1.5, (tableView.bounds.width / imageSize.width) * imageSize.height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user