Skip to content

Commit 828ab9f

Browse files
committed
fix: correct image size styles
1 parent 965ff6a commit 828ab9f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/components/Readme.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,11 @@ function handleClick(event: MouseEvent) {
444444
z-index: 1;
445445
}
446446
447+
/* With defined width, height will be automatically calculated using the aspect ratio */
448+
.readme :deep(img[width]) {
449+
height: auto;
450+
}
451+
447452
.readme :deep(video) {
448453
height: revert-layer;
449454
display: revert-layer;

0 commit comments

Comments
 (0)