aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-15 15:40:08 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-15 15:40:12 +0530
commitc38a88988b9a24048087e6ee8c332bb130a422d5 (patch)
tree2e0ab26d18d15b299058e502d42737210fd492e7
parent.mobileconfig: fix lists (diff)
downloadwireguard-apple-c38a88988b9a24048087e6ee8c332bb130a422d5.tar.xz
wireguard-apple-c38a88988b9a24048087e6ee8c332bb130a422d5.zip
macOS: Tunnels list: Use constant width for the table view
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift3
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift2
2 files changed, 2 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
index 5e904374..8d281570 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
@@ -54,8 +54,7 @@ class ManageTunnelsRootViewController: NSViewController {
tunnelDetailContainerView.topAnchor.constraint(equalTo: container.topAnchor),
tunnelDetailContainerView.bottomAnchor.constraint(equalTo: container.bottomAnchor),
tunnelDetailContainerView.leadingAnchor.constraint(equalTo: tunnelsListView.trailingAnchor, constant: centralSpacing),
- tunnelDetailContainerView.trailingAnchor.constraint(equalTo: container.trailingAnchor),
- tunnelsListView.widthAnchor.constraint(equalTo: container.widthAnchor, multiplier: 0.3)
+ tunnelDetailContainerView.trailingAnchor.constraint(equalTo: container.trailingAnchor)
])
}
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
index c2f3ffa4..0ebac16e 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
@@ -100,7 +100,7 @@ class TunnelsListTableViewController: NSViewController {
])
NSLayoutConstraint.activate([
- containerView.widthAnchor.constraint(greaterThanOrEqualToConstant: 120),
+ containerView.widthAnchor.constraint(equalToConstant: 180),
containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: 120)
])