Skip to content

Commit cf8ad67

Browse files
committed
fix: height
1 parent 0a106d7 commit cf8ad67

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

apps/web/app/components/EventPageSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { panelEventPanelers } = props.data as Panelers
2828
<PanelerList :panelers="panelEventPanelers.list['welcome-vuejs-community']" />
2929
</EventCard>
3030
<EventCard id="handson" title="vuejs-handson">
31-
<EventMultipleAssets :title-list="['vuejs-handson', 'vuejs-handson']" />
31+
<EventMultipleAssets :title-list="['vuejs-handson', 'vuejs-handson']" :img-height="256" />
3232
</EventCard>
3333
<div class="event-body-column column-2">
3434
<EventCard title="creative-wall" font-class="title-2" padding-class="content-2">

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ import type { Event } from '@vuejs-jp/model'
33
44
interface EventMultipleAssetsProps {
55
titleList: Extract<Event, 'vuejs-handson' | 'cocktail-bash'>[]
6+
imgHeight?: number
67
}
78
89
const props = defineProps<EventMultipleAssetsProps>()
910
</script>
1011

1112
<template>
12-
<div class="eventcard-images">
13+
<div
14+
class="eventcard-images"
15+
:style="{
16+
'--head-img-height': `${imgHeight}px`,
17+
}"
18+
>
1319
<img v-for="(title, key) in titleList" :key :src="`/event/${title}-${key + 1}.png`" alt="" />
1420
</div>
1521
</template>
@@ -29,8 +35,6 @@ const props = defineProps<EventMultipleAssetsProps>()
2935
}
3036
3137
.eventcard-images ::v-deep(img) {
32-
--head-img-height: 256px;
33-
3438
padding: 0;
3539
margin: 0 auto;
3640
height: var(--head-img-height);

0 commit comments

Comments
 (0)