summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-17 04:40:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-17 04:40:47 +0900
commitf014df931dbe8264bbfc7eed291fd60342c90bc5 (patch)
treeb092e9585c9a00dd48ecfd8a68337bc8ddc59679 /src
parent[Client] 良い感じに (diff)
downloadmisskey-f014df931dbe8264bbfc7eed291fd60342c90bc5.tar.gz
misskey-f014df931dbe8264bbfc7eed291fd60342c90bc5.tar.bz2
misskey-f014df931dbe8264bbfc7eed291fd60342c90bc5.zip
[Client] Better design
Diffstat (limited to 'src')
-rw-r--r--src/web/app/common/tags/poll.tag3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/app/common/tags/poll.tag b/src/web/app/common/tags/poll.tag
index ff5040f78f..dc04c2ecf1 100644
--- a/src/web/app/common/tags/poll.tag
+++ b/src/web/app/common/tags/poll.tag
@@ -1,7 +1,7 @@
<mk-poll data-is-voted={ isVoted }>
<ul>
<li each={ poll.choices } onclick={ vote.bind(null, id) } class={ voted: voted } title={ !parent.isVoted ? '「' + text + '」に投票する' : '' }>
- <div class="backdrop" if={ parent.result } style={ 'width:' + (votes / parent.total * 100) + '%' }></div>
+ <div class="backdrop" style={ 'width:' + (parent.result ? (votes / parent.total * 100) : 0) + '%' }></div>
<span>
<i class="fa fa-check" if={ is_voted }></i>
{ text }
@@ -47,6 +47,7 @@
left 0
height 100%
background $theme-color
+ transition width 1s ease
> .votes
margin-left 4px