Feature/4383 poll participants details

This commit is contained in:
Frank Rotermund
2023-05-31 14:31:07 +00:00
committed by Arnfried Griesert
parent 00286183f6
commit 9bd569dac0
22 changed files with 462 additions and 19 deletions
@@ -58,6 +58,19 @@ struct TimelinePollView: View {
.lineLimit(2)
.font(theme.fonts.footnote)
.foregroundColor(theme.colors.tertiaryContent)
if poll.showParticipants && (poll.type == .undisclosed || poll.closed) {
Button(action: {
viewModel.send(viewAction:.showParticipants)
})
{
Text(BWIL10n.pollTimelineShowParticipantsButton)
.font(theme.fonts.body)
.bold()
.foregroundColor(theme.colors.accent)
}
}
}
.padding([.horizontal, .top], 2.0)
.padding([.bottom])