From c4c69cd267012158d456be0852e9e51e62874848 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 12 Oct 2024 11:28:58 +0900 Subject: [PATCH] :art: --- .../src/components/MkDateSeparatedList.vue | 6 ++++-- .../frontend/src/components/global/MkAd.vue | 18 ++++++------------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/packages/frontend/src/components/MkDateSeparatedList.vue b/packages/frontend/src/components/MkDateSeparatedList.vue index a8a32e8bc7..5976aa02f5 100644 --- a/packages/frontend/src/components/MkDateSeparatedList.vue +++ b/packages/frontend/src/components/MkDateSeparatedList.vue @@ -100,10 +100,12 @@ export default defineComponent({ return [el, separator]; } else { if (props.ad && item._shouldInsertAd_) { - return [h(MkAd, { + return [h('div', { key: item.id + ':ad', + style: 'padding: 8px; background-size: auto auto; background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, var(--MI_THEME-bg) 8px, var(--MI_THEME-bg) 14px );', + }, [h(MkAd, { prefer: ['horizontal', 'horizontal-big'], - }), el]; + })]), el]; } else { return el; } diff --git a/packages/frontend/src/components/global/MkAd.vue b/packages/frontend/src/components/global/MkAd.vue index 1eded847ef..792a087148 100644 --- a/packages/frontend/src/components/global/MkAd.vue +++ b/packages/frontend/src/components/global/MkAd.vue @@ -30,12 +30,10 @@ SPDX-License-Identifier: AGPL-3.0-only
-
-
Ads by {{ host }}
- - {{ i18n.ts._ad.reduceFrequencyOfThisAd }} - -
+
Ads by {{ host }}
+ + {{ i18n.ts._ad.reduceFrequencyOfThisAd }} +
@@ -123,8 +121,7 @@ function reduceFrequency(): void {