Skip to content

Commit d797bac

Browse files
committed
style: reduce carousel image size to improve mobile loading speed
1 parent 7533c40 commit d797bac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/.vitepress/theme/components/HeroCarousel.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ onUnmounted(() => {
131131
}
132132
133133
.carousel-img {
134-
max-width: 100%;
135-
max-height: 100%;
134+
max-width: 60%;
135+
max-height: 60%;
136136
object-fit: contain;
137137
}
138138
@@ -203,8 +203,8 @@ onUnmounted(() => {
203203
}
204204
205205
.carousel-img {
206-
width: 100%;
207-
height: 100%;
206+
width: 60%;
207+
height: 60%;
208208
}
209209
}
210210

0 commit comments

Comments
 (0)