Show hostname with middle truncation on iOS
This commit is contained in:
parent
41de48789e
commit
8536aee755
|
@ -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]
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue