Skip to content

Commit

Permalink
[ABW-2917] Scaling fix (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
kugel3 authored Feb 1, 2024
1 parent 6b7b332 commit f029422
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions RadixWallet/Core/DesignSystem/Components/PoolUnitView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,23 @@ public struct PoolUnitResourcesView: View {
public var body: some View {
VStack(spacing: 0) {
ForEach(resources) { resource in
let isNotLast = resource.id != resources.last?.id
PoolUnitResourceView(viewState: resource)
.padding(.small1)

if resource.id != resources.last?.id {
Rectangle()
.fill(.app.gray3)
.frame(height: 1)
}
.padding(.bottom, isNotLast ? dividerHeight : 0)
.overlay(alignment: .bottom) {
if isNotLast {
Rectangle()
.fill(.app.gray3)
.frame(height: dividerHeight)
}
}
}
}
.roundedCorners(strokeColor: .app.gray3)
}

private let dividerHeight: CGFloat = 1
}

// MARK: - PoolUnitResourceView
Expand Down

0 comments on commit f029422

Please sign in to comment.