-
- {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', () => {