mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-21 17:53:08 -05:00
fix(frontend): fix ad rendering of timeline
This commit is contained in:
parent
393f893a2c
commit
8baf54e629
1 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue