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

fix: iframe styling #355

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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