This commit is contained in:
syuilo 2025-05-09 20:27:11 +09:00
parent 1febae7128
commit 6a2dc2d2d2
2 changed files with 8 additions and 4 deletions

View File

@ -18,7 +18,14 @@ SPDX-License-Identifier: AGPL-3.0-only
</details> </details>
<details v-if="note.poll"> <details v-if="note.poll">
<summary>{{ i18n.ts.poll }}</summary> <summary>{{ i18n.ts.poll }}</summary>
<MkPoll :noteId="note.id" :poll="note.poll" :author="note.user" :emojiUrls="note.emojis"/> <MkPoll
:noteId="note.id"
:multiple="note.poll.multiple"
:expiresAt="note.poll.expiresAt"
:choices="note.poll.choices"
:author="note.user"
:emojiUrls="note.emojis"
/>
</details> </details>
<button v-if="isLong && collapsed" :class="$style.fade" class="_button" @click="collapsed = false"> <button v-if="isLong && collapsed" :class="$style.fade" class="_button" @click="collapsed = false">
<span :class="$style.fadeLabel">{{ i18n.ts.showMore }}</span> <span :class="$style.fadeLabel">{{ i18n.ts.showMore }}</span>

View File

@ -23,9 +23,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="note.files && note.files.length > 0" :class="$style.richcontent"> <div v-if="note.files && note.files.length > 0" :class="$style.richcontent">
<MkMediaList :mediaList="note.files.slice(0, 4)"/> <MkMediaList :mediaList="note.files.slice(0, 4)"/>
</div> </div>
<div v-if="note.poll">
<MkPoll :noteId="note.id" :poll="note.poll" :readOnly="true"/>
</div>
<div v-if="note.reactionCount > 0" :class="$style.reactions"> <div v-if="note.reactionCount > 0" :class="$style.reactions">
<!-- TODO --> <!-- TODO -->
<!--<MkReactionsViewer :note="note" :maxNumber="16"/>--> <!--<MkReactionsViewer :note="note" :maxNumber="16"/>-->