Fill poll view

This commit is contained in:
Thomas Ricouard 2024-01-20 08:55:12 +01:00
parent 21d54cc546
commit 90a2a19bb1
1 changed files with 3 additions and 5 deletions

View File

@ -94,7 +94,6 @@ public struct StatusPollView: View {
Text("\(percentForOption(option: option))%")
.font(.scaledSubheadline)
}
.frame(height: .pollBarHeight)
}
}
.accessibilityElement(children: .combine)
@ -186,7 +185,6 @@ public struct StatusPollView: View {
let width = widthForOption(option: option, proxy: proxy)
Rectangle()
.foregroundColor(theme.tintColor)
.frame(height: .pollBarHeight)
.frame(width: width)
if width != proxy.size.width {
Spacer()
@ -197,21 +195,21 @@ public struct StatusPollView: View {
}
}
.foregroundColor(theme.tintColor.opacity(0.40))
.frame(height: .pollBarHeight)
.clipShape(RoundedRectangle(cornerRadius: 8))
HStack {
buttonImage
Text(option.title)
.foregroundColor(theme.labelColor)
.font(.scaledBody)
.lineLimit(3)
.minimumScaleFactor(0.7)
}
.padding(.leading, 12)
}
}
.frame(height: .pollBarHeight)
}
.buttonStyle(.borderless)
.frame(minHeight: .pollBarHeight)
}
}