summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Containers
diff options
context:
space:
mode:
authormojganii <mojgan.jelodar@mullvad.net>2025-07-01 13:46:30 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-07-17 14:05:24 +0200
commit6e92f0fe096048770e534d30ca04087d4bc714a4 (patch)
treec1ab9ce0daea35bfceff8b721f56032b30d99b37 /ios/MullvadVPN/Containers
parentae02a1f9b790d5d8966b55f918227a0983789035 (diff)
downloadmullvadvpn-6e92f0fe096048770e534d30ca04087d4bc714a4.tar.xz
mullvadvpn-6e92f0fe096048770e534d30ca04087d4bc714a4.zip
Fix dynamic sizing and layout issues across multiple views
- Fix font scaling and overlapping in device management - Adjust font size for account number - Scale info button dynamically - Resolve dynamic size issues in: - Settings - IP overrides - API access - Filter view and filter chips - Select location - Edit API access method - MullvadList - Fix line breaks in settings view - Unify padding across pages
Diffstat (limited to 'ios/MullvadVPN/Containers')
-rw-r--r--ios/MullvadVPN/Containers/Root/HeaderBarView.swift8
1 files changed, 5 insertions, 3 deletions
diff --git a/ios/MullvadVPN/Containers/Root/HeaderBarView.swift b/ios/MullvadVPN/Containers/Root/HeaderBarView.swift
index 9188a9cd50..67c0f326b8 100644
--- a/ios/MullvadVPN/Containers/Root/HeaderBarView.swift
+++ b/ios/MullvadVPN/Containers/Root/HeaderBarView.swift
@@ -24,7 +24,7 @@ class HeaderBarView: UIView {
let stackView = UIStackView()
stackView.axis = .horizontal
stackView.distribution = .fill
- stackView.spacing = 16.0
+ stackView.spacing = 8.0
return stackView
}()
@@ -33,7 +33,8 @@ class HeaderBarView: UIView {
label.font = .mullvadMiniSemiBold
label.adjustsFontForContentSizeCategory = true
label.textColor = UIColor(white: 1.0, alpha: 0.8)
- label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
+ label.setContentHuggingPriority(.defaultHigh, for: .horizontal) // Resist growing
+ label.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
label.setAccessibilityIdentifier(.headerDeviceNameLabel)
return label
}()
@@ -43,7 +44,8 @@ class HeaderBarView: UIView {
label.font = .mullvadMiniSemiBold
label.adjustsFontForContentSizeCategory = true
label.textColor = UIColor(white: 1.0, alpha: 0.8)
- label.setContentHuggingPriority(.defaultLow, for: .horizontal)
+ label.setContentHuggingPriority(.defaultLow, for: .horizontal) // Allow growing
+ label.setContentCompressionResistancePriority(.required, for: .horizontal)
return label
}()