From 5e037a7209aadcdcb26a318eef987d0b15c3751d Mon Sep 17 00:00:00 2001
From: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com>
Date: Wed, 18 Jan 2023 14:39:46 -0500
Subject: [PATCH] feat: change editor footer from sticky to fixed (#202)
---
src/editors/Editor.jsx | 2 +-
.../__snapshots__/Editor.test.jsx.snap | 4 ++--
.../__snapshots__/index.test.jsx.snap | 13 +++++++---
.../__snapshots__/index.test.jsx.snap | 24 +++----------------
.../components/EditorFooter/index.jsx | 2 +-
.../containers/EditorContainer/index.jsx | 4 +++-
.../SelectTypeWrapper/SelectTypeFooter.jsx | 2 +-
.../SelectTypeFooter.test.jsx.snap | 7 +-----
.../__snapshots__/index.test.jsx.snap | 9 +------
.../sharedComponents/RawEditor/index.jsx | 2 +-
10 files changed, 24 insertions(+), 45 deletions(-)
diff --git a/src/editors/Editor.jsx b/src/editors/Editor.jsx
index d760c72de..6668e5eb3 100644
--- a/src/editors/Editor.jsx
+++ b/src/editors/Editor.jsx
@@ -30,7 +30,7 @@ export const Editor = ({
const EditorComponent = supportedEditors[blockType];
return (
-
+
TextEditor) 1`] = `
-
- My test content
-
+
+
+ My test content
+
+
+
(
-
+
{saveFailed && (
diff --git a/src/editors/containers/EditorContainer/index.jsx b/src/editors/containers/EditorContainer/index.jsx
index 21d7edd2b..bd3658801 100644
--- a/src/editors/containers/EditorContainer/index.jsx
+++ b/src/editors/containers/EditorContainer/index.jsx
@@ -62,7 +62,9 @@ export const EditorContainer = ({
- {isInitialized && children}
+
+ {isInitialized && children}
+
(
-
+
diff --git a/src/editors/containers/ProblemEditor/components/SelectTypeModal/SelectTypeWrapper/__snapshots__/SelectTypeFooter.test.jsx.snap b/src/editors/containers/ProblemEditor/components/SelectTypeModal/SelectTypeWrapper/__snapshots__/SelectTypeFooter.test.jsx.snap
index 760a9d35c..5d136ff50 100644
--- a/src/editors/containers/ProblemEditor/components/SelectTypeModal/SelectTypeWrapper/__snapshots__/SelectTypeFooter.test.jsx.snap
+++ b/src/editors/containers/ProblemEditor/components/SelectTypeModal/SelectTypeWrapper/__snapshots__/SelectTypeFooter.test.jsx.snap
@@ -2,12 +2,7 @@
exports[`SelectTypeFooter snapshot 1`] = `
+
diff --git a/src/editors/sharedComponents/RawEditor/index.jsx b/src/editors/sharedComponents/RawEditor/index.jsx
index 6c3adccd6..05bbc9401 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 (
-
+
You are using the raw {lang} editor.