fix(frontend): fix ad rendering of timeline

This commit is contained in:
syuilo 2025-03-31 11:01:32 +09:00
parent 393f893a2c
commit 8baf54e629
1 changed files with 6 additions and 3 deletions

View File

@ -23,10 +23,13 @@ SPDX-License-Identifier: AGPL-3.0-only
tag="div" tag="div"
> >
<template v-for="(note, i) in notes" :key="note.id"> <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.noteWithAd, { '_gaps': !noGap }]">
<div v-if="note._shouldInsertAd_" :class="$style.ad"> <MkNote :class="$style.note" :note="note" :withHardMute="true"/>
<MkAd :preferForms="['horizontal', 'horizontal-big']"/> <div :class="$style.ad">
<MkAd :preferForms="['horizontal', 'horizontal-big']"/>
</div>
</div> </div>
<MkNote v-else :class="$style.note" :note="note" :withHardMute="true"/>
</template> </template>
</component> </component>
</template> </template>