aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-18 02:02:54 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-01-18 09:32:49 +0100
commit69b973efdc203b9769cedee27d775530123899a5 (patch)
treeff85f51f940c442ab2e8f31c82e08448ff037f25 /WireGuard/WireGuard
parentmacOS: Rafactor by introducing a TunnelsTracker (diff)
downloadwireguard-apple-69b973efdc203b9769cedee27d775530123899a5.tar.xz
wireguard-apple-69b973efdc203b9769cedee27d775530123899a5.zip
macOS: Tunnel detail: Better alignment for bottom controls
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index e20df32a..b3f9361c 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -142,9 +142,9 @@ class TunnelDetailTableViewController: NSViewController {
scrollView.bottomAnchor.constraint(equalTo: bottomControlsContainer.topAnchor),
bottomControlsContainer.bottomAnchor.constraint(equalTo: containerView.bottomAnchor),
statusCheckbox.leadingAnchor.constraint(equalTo: bottomControlsContainer.leadingAnchor),
- statusCheckbox.centerYAnchor.constraint(equalTo: bottomControlsContainer.centerYAnchor),
+ bottomControlsContainer.bottomAnchor.constraint(equalTo: statusCheckbox.bottomAnchor, constant: 4),
editButton.trailingAnchor.constraint(equalTo: bottomControlsContainer.trailingAnchor),
- editButton.centerYAnchor.constraint(equalTo: bottomControlsContainer.centerYAnchor)
+ bottomControlsContainer.bottomAnchor.constraint(equalTo: editButton.bottomAnchor, constant: 4)
])
NSLayoutConstraint.activate([