Skip to content

Commit

Permalink
Update aspect ratio in ImageCredited
Browse files Browse the repository at this point in the history
Reflect changes in dpl-cms where the hero image always comes with an aspect ratio of 4:6.
  • Loading branch information
kasperbirch1 committed Dec 18, 2023
1 parent fba0de5 commit 0a4d2cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stories/Blocks/event-page/EventPage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
},
image: {
defaultValue:
"https://plus.unsplash.com/premium_photo-1696886122527-e4303b76aa8f?q=80&w=5156&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
"https://images.unsplash.com/photo-1531058020387-3be344556be6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8ZXZlbnR8fHx8fHwxNzAyOTEwMzE0&ixlib=rb-4.0.3&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080",
type: "string",
},
descriptionTitle: {
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Library/image-credited/image-credited.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
}

.image-credited__no-image {
aspect-ratio: 16 / 9;
aspect-ratio: 4/3;
@extend %identity-placeholder;
}

0 comments on commit 0a4d2cd

Please sign in to comment.