calckey/src/client/app/desktop/views/components/sub-post-content.vue

45 lines
885 B
Vue
Raw Normal View History

2018-02-11 07:52:37 +00:00
<template>
<div class="mk-sub-post-content">
<div class="body">
2018-03-29 05:48:47 +00:00
<a class="reply" v-if="post.replyId">%fa:reply%</a>
2018-03-31 10:53:30 +00:00
<mk-post-html ref="text" :html="post.textHtml" :i="os.i"/>
2018-03-29 05:48:47 +00:00
<a class="rp" v-if="post.repostId" :href="`/post:${post.repostId}`">RP: ...</a>
2018-02-11 07:52:37 +00:00
</div>
<details v-if="post.media.length > 0">
2018-02-11 07:52:37 +00:00
<summary>({{ post.media.length }}つのメディア)</summary>
2018-03-26 08:03:20 +00:00
<mk-media-list :media-list="post.media"/>
2018-02-11 07:52:37 +00:00
</details>
<details v-if="post.poll">
<summary>投票</summary>
<mk-poll :post="post"/>
</details>
</div>
</template>
2018-02-12 23:11:10 +00:00
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: ['post']
2018-02-12 23:11:10 +00:00
});
2018-02-11 07:52:37 +00:00
</script>
<style lang="stylus" scoped>
.mk-sub-post-content
overflow-wrap break-word
> .body
> .reply
margin-right 6px
color #717171
2018-02-27 15:38:00 +00:00
> .rp
2018-02-11 07:52:37 +00:00
margin-left 4px
font-style oblique
color #a0bf46
mk-poll
font-size 80%
</style>