diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-31 11:01:32 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-31 11:01:32 +0900 |
| commit | 8baf54e62904b997207e37cafb14195268f54578 (patch) | |
| tree | 3a2767acd6aaac0e89e3c98096459d5bfa26a75d /packages | |
| parent | 🎨 (diff) | |
| download | sharkey-8baf54e62904b997207e37cafb14195268f54578.tar.gz sharkey-8baf54e62904b997207e37cafb14195268f54578.tar.bz2 sharkey-8baf54e62904b997207e37cafb14195268f54578.zip | |
fix(frontend): fix ad rendering of timeline
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/components/MkNotes.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkNotes.vue b/packages/frontend/src/components/MkNotes.vue index ad4844fd1b..ad6210816d 100644 --- a/packages/frontend/src/components/MkNotes.vue +++ b/packages/frontend/src/components/MkNotes.vue @@ -23,10 +23,13 @@ SPDX-License-Identifier: AGPL-3.0-only tag="div" > <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 :preferForms="['horizontal', 'horizontal-big']"/> + <div v-if="note._shouldInsertAd_" :class="[$style.noteWithAd, { '_gaps': !noGap }]"> + <MkNote :class="$style.note" :note="note" :withHardMute="true"/> + <div :class="$style.ad"> + <MkAd :preferForms="['horizontal', 'horizontal-big']"/> + </div> </div> + <MkNote v-else :class="$style.note" :note="note" :withHardMute="true"/> </template> </component> </template> |