Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix: iframe styling (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinAoki authored Oct 30, 2023
1 parent c75f877 commit 0c1f4c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/library-authoring/author-library/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

.pgn__card-header-content {
margin-top: 0.6rem;
margin-top: 20px !important;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class LibraryBlock extends React.Component {
position: 'relative',
overflow: 'hidden',
minHeight: '200px',
margin: '16px',
margin: '24px',
}}
>
<iframe
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/edit-block/LibraryBlock/wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export default function wrapBlockHtmlForIFrame(html, resources, lmsBaseUrl) {
<!-- A Studio-served stylesheet will set the body min-height to 100% (a common strategy to allow for background
images to fill the viewport), but this has the undesireable side-effect of causing an infinite loop via the
onResize event listeners in certain situations. Resetting it to the default "auto" skirts the problem. -->
<body style="min-height: auto">
<body style="min-height: auto; background-color: white">
${html}
${jsTags}
<script>
Expand Down

0 comments on commit 0c1f4c0

Please sign in to comment.