Skip to content

Commit 77dd96d

Browse files
committed
add styles for maps graphic
1 parent 49f073f commit 77dd96d

File tree

1 file changed

+3
-0
lines changed
  • src/components/design-library-list

1 file changed

+3
-0
lines changed

src/components/design-library-list/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ export const getAdditionalStylesForPreview = () => {
314314
styles += `.stk-progress-bar .stk-progress-bar__bar { width: var(--progress-percent, 0px); }`
315315
styles += `.stk-progress-circle .stk-progress-circle__bar { stroke-dashoffset: var(--progress-dash-offset); }`
316316

317+
// Set styles for maps graphic
318+
styles += `.stk-block-map { height: 100%; } .stk-block-map > img { height: 100%; width: 100%; object-fit: cover; }`
319+
317320
// Display correctly the styles for posts block.
318321
// Do this only if in Free version, since we will be able to load the correct CSS for Premium.
319322
if ( ! isPro ) {

0 commit comments

Comments
 (0)