Show hostname with middle truncation on iOS

This commit is contained in:
Davide 2024-10-29 11:50:33 +01:00
parent 41de48789e
commit 8536aee755
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@
import PassepartoutKit import PassepartoutKit
import SwiftUI import SwiftUI
// FIXME: #746, providers UI, iPadOS (Simulator?) picker .navigationLink selection is blue (vs gray) and disclosed options are white // FIXME: #774, iPadOS (Simulator?) picker .navigationLink selection is blue (vs gray) and disclosed options are white
struct ProviderPicker: View { struct ProviderPicker: View {
let providers: [ProviderMetadata] let providers: [ProviderMetadata]

View File

@ -184,8 +184,9 @@ private extension VPNProviderServerView.ServersSubview {
Text(area) Text(area)
.font(.headline) .font(.headline)
} }
Text(server.provider.serverId) Text(server.hostname ?? server.serverId)
.font(.subheadline) .font(.subheadline)
.truncationMode(.middle)
} }
Spacer() Spacer()
FavoriteToggle( FavoriteToggle(