Skip to content

Commit 09e7394

Browse files
authored
Merge pull request #179 from episerver/bugfix/CMS-47074-Exception-on-AboutUs-component-if-there-is-no-data-for-image-property
Add width height to image of aboutus component
2 parents 129f5fc + e44869c commit 09e7394

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

samples/nextjs-template/src/app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,16 @@ a:hover span.animate {
411411
background-image: linear-gradient(180deg, #10141d 55.03%, #191e28 100%);
412412
}
413413

414+
.about-us .about-us-image {
415+
position: relative;
416+
width: 100%;
417+
padding-top: 56.25%;
418+
}
419+
420+
.about-us .about-us-image img {
421+
object-fit: cover;
422+
}
423+
414424
.blog-card {
415425
color: #333;
416426
cursor: pointer;

0 commit comments

Comments
 (0)