Skip to content

Commit 803d5b6

Browse files
authored
fix(theme): add height constraints to hero image (#1983)
1 parent e9d1de8 commit 803d5b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/theme-default/components/VPHero.vue

+3
Original file line numberDiff line numberDiff line change
@@ -306,19 +306,22 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
306306
/*rtl:ignore*/
307307
left: 50%;
308308
max-width: 192px;
309+
max-height: 192px;
309310
/*rtl:ignore*/
310311
transform: translate(-50%, -50%);
311312
}
312313
313314
@media (min-width: 640px) {
314315
:deep(.image-src) {
315316
max-width: 256px;
317+
max-height: 256px;
316318
}
317319
}
318320
319321
@media (min-width: 960px) {
320322
:deep(.image-src) {
321323
max-width: 320px;
324+
max-height: 320px;
322325
}
323326
}
324327
</style>

0 commit comments

Comments
 (0)