aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 19:12:04 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 19:20:21 +0100
commit6738ebb356ebc319324dff7d68c6b1b89a58a43c (patch)
treef4bce5bbf22af07f347b53c6ba218ea4bba7c91d
parentSettings: use updated wireguard banner logo (diff)
downloadwireguard-apple-6738ebb356ebc319324dff7d68c6b1b89a58a43c.tar.xz
wireguard-apple-6738ebb356ebc319324dff7d68c6b1b89a58a43c.zip
Settings: limit size of logo
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift2
1 files changed, 1 insertions, 1 deletions
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)
}
}