about summary refs log tree commit diff
path: root/app/views/statuses
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-07 18:21:58 +0200
committerGitHub <noreply@github.com>2020-04-07 18:21:58 +0200
commit9d24bcc5e64d3e4a83e117ed02fa82e28f92ab09 (patch)
treed4d8920cba96fc5bace252497d6ec7506674464a /app/views/statuses
parentc99bc5d51bb588a56c7c8cfcee3a3a5ab3841a95 (diff)
Fix styling of polls in JS-less fallback on public pages (#13436)
Diffstat (limited to 'app/views/statuses')
-rw-r--r--app/views/statuses/_poll.html.haml10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/statuses/_poll.html.haml b/app/views/statuses/_poll.html.haml
index c17476657..de5357e6d 100644
--- a/app/views/statuses/_poll.html.haml
+++ b/app/views/statuses/_poll.html.haml
@@ -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 }