2018-04-07 11:30:37 -06:00
|
|
|
<template>
|
|
|
|
<div class="mk-sub-note-content">
|
|
|
|
<div class="body">
|
2018-05-27 23:39:46 -06:00
|
|
|
<span v-if="note.isHidden" style="opacity: 0.5">%i18n:@private%</span>
|
|
|
|
<span v-if="note.deletedAt" style="opacity: 0.5">%i18n:@deleted%</span>
|
2018-04-07 11:30:37 -06:00
|
|
|
<a class="reply" v-if="note.replyId">%fa:reply%</a>
|
2018-06-20 04:55:34 -06:00
|
|
|
<misskey-flavored-markdown v-if="note.text" :text="note.text" :i="$store.state.i"/>
|
2018-10-19 16:01:09 -06:00
|
|
|
<a class="rp" v-if="note.renoteId" :href="`/notes/${note.renoteId}`">RN: ...</a>
|
2018-04-07 11:30:37 -06:00
|
|
|
</div>
|
2018-09-05 04:32:46 -06:00
|
|
|
<details v-if="note.files.length > 0">
|
|
|
|
<summary>({{ '%i18n:@media-count%'.replace('{}', note.files.length) }})</summary>
|
|
|
|
<mk-media-list :media-list="note.files"/>
|
2018-04-07 11:30:37 -06:00
|
|
|
</details>
|
|
|
|
<details v-if="note.poll">
|
2018-05-19 15:36:26 -06:00
|
|
|
<summary>%i18n:@poll%</summary>
|
2018-04-07 11:30:37 -06:00
|
|
|
<mk-poll :note="note"/>
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
props: ['note']
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mk-sub-note-content
|
|
|
|
overflow-wrap break-word
|
|
|
|
|
|
|
|
> .body
|
|
|
|
> .reply
|
|
|
|
margin-right 6px
|
|
|
|
color #717171
|
|
|
|
|
|
|
|
> .rp
|
|
|
|
margin-left 4px
|
|
|
|
font-style oblique
|
2018-09-27 08:09:23 -06:00
|
|
|
color var(--renoteText)
|
2018-04-07 11:30:37 -06:00
|
|
|
|
|
|
|
mk-poll
|
|
|
|
font-size 80%
|
|
|
|
|
|
|
|
</style>
|