summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNotes.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-30 09:11:59 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-30 09:11:59 +0900
commitaeda34e5e797873852adbfb0d7372c7f7f7b43ec (patch)
treebe04ee0d4ff301c420a828d9abe260d7746eb3ff /packages/frontend/src/components/MkNotes.vue
parentfix(frontend): avoid naming confliction of MkAd (diff)
downloadsharkey-aeda34e5e797873852adbfb0d7372c7f7f7b43ec.tar.gz
sharkey-aeda34e5e797873852adbfb0d7372c7f7f7b43ec.tar.bz2
sharkey-aeda34e5e797873852adbfb0d7372c7f7f7b43ec.zip
fix(frontend): 広告が無い場合の表示を修正
Diffstat (limited to 'packages/frontend/src/components/MkNotes.vue')
-rw-r--r--packages/frontend/src/components/MkNotes.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNotes.vue b/packages/frontend/src/components/MkNotes.vue
index 1f0f5db42a..8605877a93 100644
--- a/packages/frontend/src/components/MkNotes.vue
+++ b/packages/frontend/src/components/MkNotes.vue
@@ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template v-for="(note, i) in notes" :key="note.id">
<MkNote :class="$style.note" :note="note" :withHardMute="true"/>
<div v-if="note._shouldInsertAd_" :class="$style.ad">
- <MkAd :prefer="['horizontal', 'horizontal-big']"/>
+ <MkAd :preferForms="['horizontal', 'horizontal-big']"/>
</div>
</template>
</div>
@@ -75,4 +75,8 @@ defineExpose({
}
}
}
+
+.ad:empty {
+ display: none;
+}
</style>