From 803d5b6d663b5293c70672ca5526a33f454e4a17 Mon Sep 17 00:00:00 2001 From: Markus Date: Sat, 25 Feb 2023 12:02:14 +0100 Subject: [PATCH] fix(theme): add height constraints to hero image (#1983) --- src/client/theme-default/components/VPHero.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/theme-default/components/VPHero.vue b/src/client/theme-default/components/VPHero.vue index 727db775..c3d515e0 100644 --- a/src/client/theme-default/components/VPHero.vue +++ b/src/client/theme-default/components/VPHero.vue @@ -306,6 +306,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref /*rtl:ignore*/ left: 50%; max-width: 192px; + max-height: 192px; /*rtl:ignore*/ transform: translate(-50%, -50%); } @@ -313,12 +314,14 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref @media (min-width: 640px) { :deep(.image-src) { max-width: 256px; + max-height: 256px; } } @media (min-width: 960px) { :deep(.image-src) { max-width: 320px; + max-height: 320px; } }