diff --git a/frontend/src/editor/editor.module.css b/frontend/src/editor/editor.module.css
index c23ad9d9..c60b0864 100644
--- a/frontend/src/editor/editor.module.css
+++ b/frontend/src/editor/editor.module.css
@@ -1,4 +1,3 @@
-/* Controls CSS for editor in all the pages (editor, demo, study) */
.editorContainer {
margin: 20px;
background: #fff;
@@ -7,12 +6,10 @@
line-height: 20px;
font-weight: 400;
text-align: left;
- box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
- padding: 50px 50px 50px 50px; /* NEW: Add right padding to the editor container instead of doing that in editor */
- height: 80vh; /* NEW: Set height to 80vh for the editor container */
+ box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
+ padding: 50px 0 50px 50px;
}
-/* Controls CSS for editor in all the pages (editor, demo, study) */
.editor {
resize: none;
font-size: 16px;
@@ -22,9 +19,10 @@
outline: 0;
caret-color: #444;
overflow-y: scroll;
- height: 100%; /* NEW: Full height to fill the editorcontainer */
+ height: 80vh;
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
+ padding-right: 46px;
}
.editor::-webkit-scrollbar {
diff --git a/frontend/src/editor/index.tsx b/frontend/src/editor/index.tsx
index 32971381..9032f579 100644
--- a/frontend/src/editor/index.tsx
+++ b/frontend/src/editor/index.tsx
@@ -151,17 +151,17 @@ function Router({
else if (page === 'study-task1') {
const condition = 'Completion'; // This would be dynamically set based on the study task
getDefaultStore().set(studyConditionAtom, condition);
- const taskDescription = 'Task 1: Should companies adopt a four-day work week (working Monday through Thursday) instead of the traditional five-day schedule? Consider impacts on productivity, employee well-being, and business operations.';
+ const taskDescription = 'Should companies adopt a four-day work week (working Monday through Thursday) instead of the traditional five-day schedule? Consider impacts on productivity, employee well-being, and business operations.';
getDefaultStore().set(taskDescriptionAtom, taskDescription);
- return
-
{taskDescription}
+ return
Study Task 1 Page - Condition: {condition}
+
{taskDescription}
;
@@ -169,17 +169,17 @@ function Router({
else if (page === 'study-task2') {
const condition = 'Question' // This would be dynamically set based on the study task
getDefaultStore().set(studyConditionAtom, condition);
- const taskDescription = 'Task 2: Should companies adopt a four-day work week (working Monday through Thursday) instead of the traditional five-day schedule? Consider impacts on productivity, employee well-being, and business operations.';
+ const taskDescription = 'description';
getDefaultStore().set(taskDescriptionAtom, taskDescription);
- return
-
{taskDescription}
-
+ return
Study Task 2 Page - Condition: {condition}
+
+ {taskDescription}
;
@@ -187,12 +187,12 @@ function Router({
else if (page === 'study-task3') {
const condition = 'RMove' // This would be dynamically set based on the study task
getDefaultStore().set(studyConditionAtom, condition);
- const taskDescription = 'Task 3: Should companies adopt a four-day work week (working Monday through Thursday) instead of the traditional five-day schedule? Consider impacts on productivity, employee well-being, and business operations.';
+ const taskDescription = 'description';
getDefaultStore().set(taskDescriptionAtom, taskDescription);
- return