fix(frontend): 広告が無い場合の表示を修正

This commit is contained in:
syuilo 2025-03-30 09:11:59 +09:00
parent 7d842c1a95
commit aeda34e5e7
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -36,7 +36,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<button class="_textButton" @click="toggleMenu">{{ i18n.ts._ad.back }}</button>
</div>
</div>
<div v-else></div>
</template>
<script lang="ts" setup>