Sharkey/src/server/web/app/mobile/views/components/sub-post-content.vue

44 lines
878 B
Vue
Raw Normal View History

2018-02-15 05:35:46 +01:00
<template>
<div class="mk-sub-post-content">
<div class="body">
<a class="reply" v-if="post.reply_id">%fa:reply%</a>
2018-02-18 04:35:18 +01:00
<mk-post-html v-if="post.ast" :ast="post.ast" :i="os.i"/>
2018-02-27 16:38:00 +01:00
<a class="rp" v-if="post.repost_id">RP: ...</a>
2018-02-15 05:35:46 +01:00
</div>
<details v-if="post.media">
2018-02-15 05:36:53 +01:00
<summary>({{ post.media.length }}個のメディア)</summary>
2018-03-26 10:03:20 +02:00
<mk-media-list :media-list="post.media"/>
2018-02-15 05:35:46 +01:00
</details>
<details v-if="post.poll">
<summary>%i18n:mobile.tags.mk-sub-post-content.poll%</summary>
<mk-poll :post="post"/>
</details>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: ['post']
});
</script>
<style lang="stylus" scoped>
.mk-sub-post-content
overflow-wrap break-word
> .body
> .reply
margin-right 6px
color #717171
2018-02-27 16:38:00 +01:00
> .rp
2018-02-15 05:35:46 +01:00
margin-left 4px
font-style oblique
color #a0bf46
mk-poll
font-size 80%
</style>