Skip to content

Commit

Permalink
Fix browsers icon BG1/b
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Jul 9, 2024
1 parent 256e88a commit d6ecdc2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ extension BrowsersComparisonChart {
let browsers: [BrowsersComparisonModel.Browser]

var body: some View {
HStack(alignment: .top) {
HStack(alignment: .bottom) {
Spacer()

ForEach(Array(browsers.enumerated()), id: \.offset) { index, browser in
Image(browser.image)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: Metrics.imageContainerSize.width, height: Metrics.imageContainerSize.height)
.frame(width: Metrics.headerImageContainerSize.width, height: Metrics.headerImageContainerSize.height)

if index < browsers.count - 1 {
Divider()
Expand Down Expand Up @@ -118,6 +116,7 @@ extension BrowsersComparisonChart.Row {
private enum Metrics {
static let stackSpacing: CGFloat = 0.0
static let headerHeight: CGFloat = 60
static let headerImageContainerSize = CGSize(width: 50, height: 80)
static let imageContainerSize = CGSize(width: 50.0, height: 50.0)
static let font = Font.system(size: 15.0)
}
Expand Down

0 comments on commit d6ecdc2

Please sign in to comment.