Skip to content

Commit

Permalink
Wrap profile rows into top/bottom spacers
Browse files Browse the repository at this point in the history
Adjust to tallest row in grid.
  • Loading branch information
keeshux committed Nov 22, 2024
1 parent 94d328c commit 7c8b429
Showing 1 changed file with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 7c8b429

Please sign in to comment.