Browse Source

Fix styling of polls in JS-less fallback on public pages (#13436)

master
ThibG 4 years ago
committed by GitHub
parent
commit
9d24bcc5e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      app/views/statuses/_poll.html.haml

+ 6
- 4
app/views/statuses/_poll.html.haml View File

@ -12,14 +12,16 @@
%span.poll__number><
- if own_votes.include?(index)
%i.poll__voted__mark.fa.fa-check
= percent.round
= Formatter.instance.format_poll_option(status, option, autoplay: autoplay)
= "#{percent.round}%"
%span.poll__option__text
= Formatter.instance.format_poll_option(status, option, autoplay: autoplay)
%span.poll__chart{ style: "width: #{percent}%" }
%span.poll__chart{ style: "width: #{percent}%" }
- else
%label.poll__option><
%span.poll__input{ class: poll.multiple? ? 'checkbox' : nil}><
= Formatter.instance.format_poll_option(status, option, autoplay: autoplay)
%span.poll__option__text
= Formatter.instance.format_poll_option(status, option, autoplay: autoplay)
.poll__footer
- unless show_results
%button.button.button-secondary{ disabled: true }

Loading…
Cancel
Save