summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/components/sub-note-content.vue
blob: 4d0aa25f3470e1d8054c2578a4413f80712d5e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<div class="mk-sub-note-content">
	<div class="body">
		<span v-if="note.isHidden" style="opacity: 0.5">(%i18n:@private%)</span>
		<span v-if="note.deletedAt" style="opacity: 0.5">(%i18n:@deleted%)</span>
		<a class="reply" v-if="note.replyId">%fa:reply%</a>
		<misskey-flavored-markdown v-if="note.text" :text="note.text" :i="$store.state.i"/>
		<a class="rp" v-if="note.renoteId">RP: ...</a>
	</div>
	<details v-if="note.files.length > 0">
		<summary>({{ '%i18n:@media-count%'.replace('{}', note.files.length) }})</summary>
		<mk-media-list :media-list="note.files"/>
	</details>
	<details v-if="note.poll">
		<summary>%i18n:@poll%</summary>
		<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>