fix(frontend): fix ad rendering of timeline
This commit is contained in:
parent
393f893a2c
commit
8baf54e629
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue