From 9d777c67cff3f9cd6730310af1e711e8a99fadd9 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:29:16 +0900 Subject: [PATCH] =?UTF-8?q?enhance(Sponsor):=20=E3=83=AD=E3=82=B4=E3=81=AE?= =?UTF-8?q?=E4=BD=99=E7=99=BD=E3=82=92=E5=BE=AE=E8=AA=BF=E6=95=B4=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/index/Sponsors.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/index/Sponsors.vue b/components/index/Sponsors.vue index 2f371161..101392d0 100644 --- a/components/index/Sponsors.vue +++ b/components/index/Sponsors.vue @@ -16,8 +16,9 @@ :src="sponsor.img" class="w-full h-full object-contain" :class="[ - { 'p-5': !sponsor.noMargin } + { 'p-5': sponsor.margin === undefined || sponsor.margin === true || sponsor.margin === 'true' }, ]" + :style="(typeof sponsor.margin === 'string' && sponsor.margin !== 'true' ? sponsor.margin : undefined)" /> @@ -29,7 +30,7 @@ type Sponsor = { /** 画像URL */ img: string; /** イメージにマージンを設けない場合はこちら */ - noMargin?: boolean; + margin?: boolean | string; /** イメージを角丸にしない場合はこちら */ noRounded?: boolean; /** 外部ページURL */ @@ -51,14 +52,14 @@ const sponsors: Sponsor[] = [ }, { img: '/img/sponsors/dcadvirth.png', - noMargin: true, + margin: false, noRounded: true, to: 'https://www.dotchain.ltd/advirth', }, { img: '/img/sponsors/xserver.png', - noMargin: true, + margin: false, to: 'https://www.xserver.ne.jp/', - } + }, ];