1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-23 19:18:53 +09:00
cherrypick/src/client/app/desktop/views/components/sub-note-content.vue

47 lines
1.0 KiB
Vue
Raw Normal View History

2018-04-08 02:30:37 +09:00
<template>
<div class="mk-sub-note-content">
<div class="body">
2018-05-28 14:39:46 +09: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-08 02:30:37 +09:00
<a class="reply" v-if="note.replyId">%fa:reply%</a>
2018-05-28 15:04:47 +09:00
<mk-note-html v-if="note.text" :text="note.text" :i="$store.state.i"/>
2018-05-29 15:41:49 +09:00
<a class="rp" v-if="note.renoteId" :href="`/notes/${note.renoteId}`">RP: ...</a>
2018-04-08 02:30:37 +09:00
</div>
<details v-if="note.media.length > 0">
2018-05-28 14:39:46 +09:00
<summary>({{ '%i18n:@media-count%'.replace('{}', note.media.length) }})</summary>
2018-04-08 02:30:37 +09:00
<mk-media-list :media-list="note.media"/>
</details>
<details v-if="note.poll">
<summary>%i18n:@poll%</summary>
2018-04-08 02:30:37 +09: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
color #a0bf46
mk-poll
font-size 80%
</style>