about summary refs log tree commit diff
path: root/app/views/statuses
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-04-12 16:50:27 +0200
committerThibaut Girka <thib@sitedethib.com>2020-04-12 16:50:27 +0200
commitfdd0beefa7176f4d0df3adcf37156229889127d7 (patch)
tree9a618d6a5c0759b28b89f663ff0fc8eee6c4db6c /app/views/statuses
parent51bbf0b68dc504c441cb929e4fbf8d8c6e04df42 (diff)
parent490ff09c5a503f1e5f9cad964470fdefa3eabea8 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts:
- `README.md`:
  We have a different README than upstream, discarded upstream changes
  and kept ours.
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 }