diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index ff227b0ef..8f7301873 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -172,6 +172,12 @@ onMounted(() => { el.appendChild(textBox); pwsp.on('change', (a) => { + if (pwsp.currSlide?.data.comment) { + textBox.style.display = ''; + } else { + textBox.style.display = 'none'; + } + textBox.textContent = pwsp.currSlide.data.comment; }); },