From 6738ebb356ebc319324dff7d68c6b1b89a58a43c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 3 Nov 2018 19:12:04 +0100 Subject: Settings: limit size of logo Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift index b3d8c21..acca64d 100644 --- a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift @@ -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) } } -- cgit v1.2.3-59-g8ed1b