mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-17 05:12:18 +00:00
Fix layout of multiline modules (#916)
- Align to .leading in multi-line - Wrap profile rows into top/bottom spacers to adjust to tallest cell in grid See #915
This commit is contained in:
parent
fb0d1abc8a
commit
bd237c4a6f
@ -51,6 +51,7 @@ struct ProfileCardView: View {
|
||||
.themeTruncating()
|
||||
|
||||
Text(preview.subtitle ?? Strings.Views.Profiles.Rows.noModules)
|
||||
.multilineTextAlignment(.leading)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
@ -54,24 +54,28 @@ struct ProfileRowView: View, Routable {
|
||||
var flow: ProfileFlow?
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
Group {
|
||||
if withMarker {
|
||||
markerView
|
||||
VStack(spacing: .zero) {
|
||||
Spacer(minLength: .zero)
|
||||
HStack {
|
||||
Group {
|
||||
if withMarker {
|
||||
markerView
|
||||
}
|
||||
cardView
|
||||
}
|
||||
cardView
|
||||
}
|
||||
Spacer()
|
||||
HStack(spacing: 10.0) {
|
||||
ProfileAttributesView(
|
||||
attributes: attributes,
|
||||
isRemoteImportingEnabled: profileManager.isRemoteImportingEnabled
|
||||
)
|
||||
ProfileInfoButton(preview: preview) {
|
||||
flow?.onEditProfile($0)
|
||||
Spacer()
|
||||
HStack(spacing: 10.0) {
|
||||
ProfileAttributesView(
|
||||
attributes: attributes,
|
||||
isRemoteImportingEnabled: profileManager.isRemoteImportingEnabled
|
||||
)
|
||||
ProfileInfoButton(preview: preview) {
|
||||
flow?.onEditProfile($0)
|
||||
}
|
||||
}
|
||||
.imageScale(.large)
|
||||
}
|
||||
.imageScale(.large)
|
||||
Spacer(minLength: .zero)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user