Show hostname with middle truncation on iOS
This commit is contained in:
parent
41de48789e
commit
8536aee755
|
@ -26,7 +26,7 @@
|
|||
import PassepartoutKit
|
||||
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 {
|
||||
let providers: [ProviderMetadata]
|
||||
|
|
|
@ -184,8 +184,9 @@ private extension VPNProviderServerView.ServersSubview {
|
|||
Text(area)
|
||||
.font(.headline)
|
||||
}
|
||||
Text(server.provider.serverId)
|
||||
Text(server.hostname ?? server.serverId)
|
||||
.font(.subheadline)
|
||||
.truncationMode(.middle)
|
||||
}
|
||||
Spacer()
|
||||
FavoriteToggle(
|
||||
|
|
Loading…
Reference in New Issue