Skip to content
Snippets Groups Projects
Commit de67606b authored by Insert5StarName's avatar Insert5StarName
Browse files

upd: collapse files

parent 9ee5fc9a
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :emojiUrls="note.emojis"/>
<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`" v-on:click.stop>RN: ...</MkA>
</div>
<details v-if="note.files.length > 0">
<details v-if="note.files.length > 0" :open="!defaultStore.state.collapseFiles">
<summary>({{ i18n.t('withNFiles', { n: note.files.length }) }})</summary>
<MkMediaList :mediaList="note.files"/>
</details>
......@@ -37,6 +37,7 @@ import MkPoll from '@/components/MkPoll.vue';
import { i18n } from '@/i18n.js';
import { $i } from '@/account.js';
import { shouldCollapsed } from '@/scripts/collapsed.js';
import { defaultStore } from '@/store.js';
import { useRouter } from '@/router.js';
const props = defineProps<{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment