Fill poll view
This commit is contained in:
parent
21d54cc546
commit
90a2a19bb1
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue