summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-16 10:50:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-16 10:50:28 +0900
commitd7bc8cf5a8b20fb402789ae79d38cc7a34380600 (patch)
tree3bec3cd1d330af5fe831063e475cb0301128b42f /src
parent[Client] Better design (diff)
downloadmisskey-d7bc8cf5a8b20fb402789ae79d38cc7a34380600.tar.gz
misskey-d7bc8cf5a8b20fb402789ae79d38cc7a34380600.tar.bz2
misskey-d7bc8cf5a8b20fb402789ae79d38cc7a34380600.zip
[Client] Display a poll in a sub post
Diffstat (limited to 'src')
-rw-r--r--src/web/app/desktop/tags/sub-post-content.tag7
-rw-r--r--src/web/app/mobile/tags/sub-post-content.tag7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/web/app/desktop/tags/sub-post-content.tag b/src/web/app/desktop/tags/sub-post-content.tag
index 22fd818115..b301f8ef3b 100644
--- a/src/web/app/desktop/tags/sub-post-content.tag
+++ b/src/web/app/desktop/tags/sub-post-content.tag
@@ -4,6 +4,10 @@
<summary>({ post.media.length }つのメディア)</summary>
<mk-images-viewer images={ post.media }></mk-images-viewer>
</details>
+ <details if={ post.poll }>
+ <summary>投票</summary>
+ <mk-poll post={ post }></mk-poll>
+ </details>
<style type="stylus">
:scope
display block
@@ -19,6 +23,9 @@
font-style oblique
color #a0bf46
+ mk-poll
+ font-size 80%
+
</style>
<script>
@mixin \text
diff --git a/src/web/app/mobile/tags/sub-post-content.tag b/src/web/app/mobile/tags/sub-post-content.tag
index 851a39f036..55ea0b5646 100644
--- a/src/web/app/mobile/tags/sub-post-content.tag
+++ b/src/web/app/mobile/tags/sub-post-content.tag
@@ -4,6 +4,10 @@
<summary>({ post.media.length }つのメディア)</summary>
<mk-images-viewer images={ post.media }></mk-images-viewer>
</details>
+ <details if={ post.poll }>
+ <summary>投票</summary>
+ <mk-poll post={ post }></mk-poll>
+ </details>
<style type="stylus">
:scope
display block
@@ -19,6 +23,9 @@
font-style oblique
color #a0bf46
+ mk-poll
+ font-size 80%
+
</style>
<script>
@mixin \text