diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/__snapshots__/index.test.jsx.snap b/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/__snapshots__/index.test.jsx.snap index 7bd06f8f0..03d847439 100644 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/__snapshots__/index.test.jsx.snap +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/__snapshots__/index.test.jsx.snap @@ -5,7 +5,7 @@ exports[`SettingsWidget snapshot snapshot: renders Settings widget page 1`] = ` className="settingsWidget ml-4" >
-
+
diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap b/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap index 8843f3e80..245bb0ad1 100644 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/__snapshots__/index.test.jsx.snap @@ -7,8 +7,9 @@ exports[`EditorProblemView component renders raw editor 1`] = `
- - + diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx b/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx index 03b620a09..1c0be158c 100644 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/index.jsx @@ -2,6 +2,8 @@ import React, { useRef } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; +import { Container } from '@edx/paragon'; + import AnswerWidget from './AnswerWidget'; import SettingsWidget from './SettingsWidget'; import QuestionWidget from './QuestionWidget'; @@ -25,16 +27,16 @@ export const EditProblemView = ({ return (
- - {isAdvancedProblemType ? ( + {isAdvancedProblemType ? ( + - ) : ( - <> - - - - )} - + + ) : ( + + + + + )} diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/index.scss b/src/editors/containers/ProblemEditor/components/EditProblemView/index.scss index 500012974..693eadd2f 100644 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/index.scss +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/index.scss @@ -1,6 +1,11 @@ .editProblemView { .editProblemView-settingsColumn { - flex-basis: 320px; + width: 320px; + flex-grow: 0; + flex-shrink: 0; + } + .advancedEditorTopMargin { + margin-top: 40px; } } diff --git a/src/editors/sharedComponents/RawEditor/__snapshots__/index.test.jsx.snap b/src/editors/sharedComponents/RawEditor/__snapshots__/index.test.jsx.snap index f7b70ddf5..d4cb4692f 100644 --- a/src/editors/sharedComponents/RawEditor/__snapshots__/index.test.jsx.snap +++ b/src/editors/sharedComponents/RawEditor/__snapshots__/index.test.jsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`RawEditor renders as expected with content equal to null 1`] = ` - +
@@ -9,11 +9,11 @@ exports[`RawEditor renders as expected with content equal to null 1`] = ` html editor. - +
`; exports[`RawEditor renders as expected with default behavior 1`] = ` - +
@@ -32,11 +32,11 @@ exports[`RawEditor renders as expected with default behavior 1`] = ` lang="html" value="eDiTablE Text" /> - +
`; exports[`RawEditor renders as expected with lang equal to xml 1`] = ` - +
- +
`; diff --git a/src/editors/sharedComponents/RawEditor/index.jsx b/src/editors/sharedComponents/RawEditor/index.jsx index 2d1d3347a..e62cb36cb 100644 --- a/src/editors/sharedComponents/RawEditor/index.jsx +++ b/src/editors/sharedComponents/RawEditor/index.jsx @@ -18,7 +18,7 @@ export const RawEditor = ({ const value = getValue(content); return ( - <> +
{lang === 'xml' ? null : ( You are using the raw {lang} editor. @@ -32,7 +32,7 @@ export const RawEditor = ({ /> ) : null} - +
); }; RawEditor.defaultProps = { diff --git a/src/editors/sharedComponents/RawEditor/index.test.jsx b/src/editors/sharedComponents/RawEditor/index.test.jsx index 86f0cc765..9db6b86af 100644 --- a/src/editors/sharedComponents/RawEditor/index.test.jsx +++ b/src/editors/sharedComponents/RawEditor/index.test.jsx @@ -30,6 +30,7 @@ describe('RawEditor', () => { }, content: null, lang: 'html', + width: { width: '80%' }, }; test('renders as expected with default behavior', () => {