Skip to content

Commit 7d94481

Browse files
GabrielxDuObrc-dd
andauthored
fix(theme-default): ensure proper sizing of SVG hero images (#4639)
Co-authored-by: Divyansh Singh <[email protected]>
1 parent 9d0145d commit 7d94481

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
322322
left: 50%;
323323
max-width: 192px;
324324
max-height: 192px;
325+
width: 100%;
326+
height: 100%;
327+
object-fit: contain;
325328
/*rtl:ignore*/
326329
transform: translate(-50%, -50%);
327330
}

0 commit comments

Comments
 (0)