about summary refs log tree commit diff
path: root/app/views/statuses/_poll.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-12 17:58:25 +0200
committerGitHub <noreply@github.com>2020-04-12 17:58:25 +0200
commit615073df33b9a4317ac5c93fdef83c9cd34567fa (patch)
tree8bf82214f7e10e6fdff6c331f20b621e35650d60 /app/views/statuses/_poll.html.haml
parent51bbf0b68dc504c441cb929e4fbf8d8c6e04df42 (diff)
parenta08a2130f0adec653be22b09140f8b502785a13e (diff)
Merge pull request #1316 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/statuses/_poll.html.haml')
-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 }