fix(frontend): アンケート(投票)でリモートの絵文字が正しく描画できない問題の修正 (#15306)
* アンケート選択肢にリモート絵文字を表示 * MkSubNoteContentでのリモート絵文字の描画 * Update Changelog --------- Co-authored-by: kozakura913 <98575220+kozakura913@users.noreply.github.com>
This commit is contained in:
		@@ -88,7 +88,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
					<div v-if="appearNote.files && appearNote.files.length > 0">
 | 
			
		||||
						<MkMediaList ref="galleryEl" :mediaList="appearNote.files"/>
 | 
			
		||||
					</div>
 | 
			
		||||
					<MkPoll v-if="appearNote.poll" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll"/>
 | 
			
		||||
					<MkPoll v-if="appearNote.poll" :noteId="appearNote.id" :poll="appearNote.poll" :author="appearNote.user" :emojiUrls="appearNote.emojis" :class="$style.poll"/>
 | 
			
		||||
					<div v-if="isEnabledUrlPreview">
 | 
			
		||||
						<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" :class="$style.urlPreview"/>
 | 
			
		||||
					</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -109,7 +109,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
				<div v-if="appearNote.files && appearNote.files.length > 0">
 | 
			
		||||
					<MkMediaList ref="galleryEl" :mediaList="appearNote.files"/>
 | 
			
		||||
				</div>
 | 
			
		||||
				<MkPoll v-if="appearNote.poll" ref="pollViewer" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll"/>
 | 
			
		||||
				<MkPoll v-if="appearNote.poll" ref="pollViewer" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll" :author="appearNote.user" :emojiUrls="appearNote.emojis"/>
 | 
			
		||||
				<div v-if="isEnabledUrlPreview">
 | 
			
		||||
					<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="true" style="margin-top: 6px;"/>
 | 
			
		||||
				</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
			<div :class="$style.bg" :style="{ 'width': `${showResult ? (choice.votes / total * 100) : 0}%` }"></div>
 | 
			
		||||
			<span :class="$style.fg">
 | 
			
		||||
				<template v-if="choice.isVoted"><i class="ti ti-check" style="margin-right: 4px; color: var(--MI_THEME-accent);"></i></template>
 | 
			
		||||
				<Mfm :text="choice.text" :plain="true"/>
 | 
			
		||||
				<Mfm :text="choice.text" :plain="true" :author="author" :emojiUrls="emojiUrls"/>
 | 
			
		||||
				<span v-if="showResult" style="margin-left: 4px; opacity: 0.7;">({{ i18n.tsx._poll.votesCount({ n: choice.votes }) }})</span>
 | 
			
		||||
			</span>
 | 
			
		||||
		</li>
 | 
			
		||||
@@ -42,6 +42,8 @@ const props = defineProps<{
 | 
			
		||||
	noteId: string;
 | 
			
		||||
	poll: NonNullable<Misskey.entities.Note['poll']>;
 | 
			
		||||
	readOnly?: boolean;
 | 
			
		||||
	emojiUrls?: Record<string, string>;
 | 
			
		||||
	author?: Misskey.entities.UserLite;
 | 
			
		||||
}>();
 | 
			
		||||
 | 
			
		||||
const remaining = ref(-1);
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
	</details>
 | 
			
		||||
	<details v-if="note.poll">
 | 
			
		||||
		<summary>{{ i18n.ts.poll }}</summary>
 | 
			
		||||
		<MkPoll :noteId="note.id" :poll="note.poll"/>
 | 
			
		||||
		<MkPoll :noteId="note.id" :poll="note.poll" :author="appearNote.user" :emojiUrls="appearNote.emojis"/>
 | 
			
		||||
	</details>
 | 
			
		||||
	<button v-if="isLong && collapsed" :class="$style.fade" class="_button" @click="collapsed = false">
 | 
			
		||||
		<span :class="$style.fadeLabel">{{ i18n.ts.showMore }}</span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user