File tree Expand file tree Collapse file tree 3 files changed +12
-27
lines changed
apps/web/app/components/ticket Expand file tree Collapse file tree 3 files changed +12
-27
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ const { locale: currentLocale } = useLocaleCurrent()
2727 <NuxtImg
2828 :src =" '/namecard/namecard-samples.png'"
2929 alt =" test"
30- width =" auto"
31- height =" auto"
32- fit =" cover"
30+ width =" 596"
3331 loading =" lazy"
3432 />
3533 <div class =" buttons-wrapper" >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { ticketUrl } from '~/utils/constants'
1616 :detail =" $t(`personal_sponsor.merit${i}.detail`)"
1717 :caution =" i === 2 || i === 4 ? $t(`personal_sponsor.merit${i}.caution`) : ''"
1818 >
19- <NuxtImg alt =" " :src =" `/sponsor/merit-${i}.jpg`" loading =" lazy" />
19+ <NuxtImg alt =" " :src =" `/sponsor/merit-${i}.jpg`" loading =" lazy" class = " image " />
2020 </VFMeritCard >
2121 </div >
2222 <div class =" personal-sponsor-text" >
@@ -89,6 +89,12 @@ import { ticketUrl } from '~/utils/constants'
8989 color : var (--color-white );
9090}
9191
92+ .image {
93+ width : 100% ;
94+ height : 100% ;
95+ object-fit : cover ;
96+ }
97+
9298.apply {
9399 display : flex ;
94100 flex-direction : column ;
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ const props = defineProps<MeritProps>()
1111<template >
1212 <div class =" merit" >
1313 <div class =" merit-card" >
14- <div class =" image" >
15- <slot />
16- </div >
14+ <slot />
1715 </div >
1816 <div class =" merit-item" >
1917 <h4 class =" merit-title" >{{ title }}</h4 >
@@ -31,18 +29,9 @@ const props = defineProps<MeritProps>()
3129}
3230
3331.merit-card {
34- position : relative ;
35- display : grid ;
36- place-items : center ;
37- padding-bottom : calc (var (--unit ) * 1 );
3832 width : 224px ;
3933 height : 126px ;
40- background : var (--color-white );
41- }
42-
43- .image {
44- width : 100% ;
45- height : auto ;
34+ object-fit : cover ;
4635}
4736
4837.merit-item {
@@ -79,17 +68,9 @@ const props = defineProps<MeritProps>()
7968 }
8069
8170 .merit-card {
82- width : 343px ;
83- height : 228px ;
84- padding-bottom : 0 ;
85- }
86-
87- .image {
88- margin : 0 auto ;
8971 width : 100% ;
90- height : 100% ;
91- display : flex ;
92- justify-content : center ;
72+ height : auto ;
73+ max-width : 232px ;
9374 }
9475
9576 .merit-item ::v-deep(h4 ) {
You can’t perform that action at this time.
0 commit comments