Skip to content

Commit

Permalink
Display background image on Layout Ctr Block (episerver#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-isaacs committed Nov 5, 2024
1 parent 30b19b9 commit 8abad00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ export const LayoutContainerBlockComponent : CmsComponent<Partial<LayoutContaine
"url" in backgroundImage
) {
// Set background image style
const bgImage: any = backgroundImage.url;
backgroundStyle = {
backgroundImage: `url(${backgroundImage.url})`,
backgroundImage: `url(${bgImage.default})`,
backgroundSize: "cover",
backgroundPosition: "center",
};
Expand Down

0 comments on commit 8abad00

Please sign in to comment.