Settings: limit size of logo

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-11-03 19:12:04 +01:00
parent b28a62c114
commit 6738ebb356
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ extension SettingsTableViewController {
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
guard (section == 1) 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)
}
}