Skip to content

Commit b24be44

Browse files
committed
Remove height restriction for iframe questions
1 parent 5b31c06 commit b24be44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • bases/rsptx/assignment_server_api/assignment_builder/src

bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/exercises/components/CreateExercise/components/IframeExercise/components/IframeUrlInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const IframeUrlInput: FC<IframeUrlInputProps> = ({ iframeSrc, onChange })
6767
<iframe
6868
src={iframeSrc}
6969
title="iFrame Preview"
70-
style={{ width: "100%", height: "400px", border: "none" }}
70+
style={{ width: "100%", border: "none" }}
7171
allowFullScreen
7272
/>
7373
</div>

bases/rsptx/assignment_server_api/assignment_builder/src/utils/preview/iframePreview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const generateIframePreview = (iframeSrc: string, questionName: string):
66
return `
77
<div class="runestone">
88
<div data-component="splice" id="${safeId}">
9-
<iframe src="${iframeSrc}" style="width: 100%; height: 400px; border: none;" allowfullscreen></iframe>
9+
<iframe src="${iframeSrc}" style="width: 100%; border: none;" allowfullscreen></iframe>
1010
</div>
1111
</div>
1212
`;

0 commit comments

Comments
 (0)