Skip to content

Commit

Permalink
upd: collapse files
Browse files Browse the repository at this point in the history
  • Loading branch information
Insert5StarName committed Sep 28, 2023
1 parent 9ee5fc9 commit de67606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/src/components/MkSubNoteContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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<{
Expand Down

0 comments on commit de67606

Please sign in to comment.