File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const { panelEventPanelers } = props.data as Panelers
28
28
<PanelerList :panelers =" panelEventPanelers.list['welcome-vuejs-community']" />
29
29
</EventCard >
30
30
<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 " />
32
32
</EventCard >
33
33
<div class =" event-body-column column-2" >
34
34
<EventCard title =" creative-wall" font-class =" title-2" padding-class =" content-2" >
Original file line number Diff line number Diff line change @@ -3,13 +3,19 @@ import type { Event } from '@vuejs-jp/model'
3
3
4
4
interface EventMultipleAssetsProps {
5
5
titleList: Extract <Event , ' vuejs-handson' | ' cocktail-bash' >[]
6
+ imgHeight? : number
6
7
}
7
8
8
9
const props = defineProps <EventMultipleAssetsProps >()
9
10
</script >
10
11
11
12
<template >
12
- <div class =" eventcard-images" >
13
+ <div
14
+ class =" eventcard-images"
15
+ :style =" {
16
+ '--head-img-height': `${imgHeight}px`,
17
+ }"
18
+ >
13
19
<img v-for =" (title, key) in titleList" :key :src =" `/event/${title}-${key + 1}.png`" alt =" " />
14
20
</div >
15
21
</template >
@@ -29,8 +35,6 @@ const props = defineProps<EventMultipleAssetsProps>()
29
35
}
30
36
31
37
.eventcard-images ::v-deep(img ) {
32
- --head-img-height : 256px ;
33
-
34
38
padding : 0 ;
35
39
margin : 0 auto ;
36
40
height : var (--head-img-height );
You can’t perform that action at this time.
0 commit comments