Skip to content

Commit b2fda42

Browse files
committed
Merge branch 'fix/resize-images' of https://github.com/vuejs-jp/vuefes-2024 into fix/resize-images
2 parents 7851a3d + 85ed58b commit b2fda42

File tree

5 files changed

+20
-30
lines changed

5 files changed

+20
-30
lines changed

apps/web/app/components/event/EventAsset.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const props = defineProps<EventAssetProps>()
1818
alt=""
1919
class="eventcard-image"
2020
:style="{ marginTop: `${marginTop}px` }"
21-
width="920"
22-
height="444"
23-
fit="cover"
2421
loading="lazy"
2522
/>
2623
</template>

apps/web/app/components/event/EventCard.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const props = defineProps<EventCardProps>()
1717
:title="$t(`event.${title.replaceAll('-', '_')}`)"
1818
:font-class
1919
:padding-class
20+
class="frame"
2021
>
2122
<template #content>
2223
<div class="eventcard-content">
@@ -34,6 +35,13 @@ const props = defineProps<EventCardProps>()
3435
<style scoped>
3536
@import url('~/assets/media.css');
3637
38+
.frame {
39+
display: flex;
40+
flex-direction: column;
41+
align-items: space-between;
42+
justify-content: space-between;
43+
}
44+
3745
.eventcard-content {
3846
font-size: 16px;
3947
font-weight: 500;

apps/web/app/components/ticket/NamecardSection.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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">

apps/web/app/components/ticket/PersonalSponsorSection.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

packages/ui/components/sponsor/MeritCard.vue

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)