Wrap rather than truncate long profile names (#1150)

Better trade-off than the fixed list/grid height now that the animations
are off.


https://www.reddit.com/r/passepartout/comments/1ik8tm2/comment/mbn1o1h/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
This commit is contained in:
Davide 2025-02-08 12:02:26 +01:00 committed by GitHub
parent ce77b4fc6a
commit 18c2b85096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ private extension InstalledProfileView {
Text(profile?.name ?? Strings.Views.App.InstalledProfile.None.name)
.font(.title2)
.fontWeight(theme.relevantWeight)
.themeTruncating(.tail)
.themeMultiLine(true)
}
var statusView: some View {

View File

@ -51,7 +51,7 @@ struct ProfileCardView: View {
} label: {
Text(preview.name)
.font(.headline)
.themeTruncating()
.themeMultiLine(true)
}
tunnelView
.font(.subheadline)