feat: help guide videos

This commit is contained in:
Jannat Patel
2024-09-16 16:49:17 +05:30
parent a7843e0e3a
commit 20c10f1645
15 changed files with 216 additions and 225 deletions

View File

@@ -120,7 +120,7 @@
</div>
<div
v-if="
lesson.data.instructor_content?.blocks?.length &&
JSON.parse(lesson.data.instructor_content)?.blocks?.length > 1 &&
allowInstructorContent()
"
class="bg-gray-100 p-3 rounded-md mt-6"
@@ -244,7 +244,7 @@ const lesson = createResource({
onSuccess(data) {
lessonProgress.value = data.membership?.progress
if (data.content) editor.value = renderEditor('editor', data.content)
if (data.instructor_content?.blocks?.length)
if (JSON.parse(data.instructor_content)?.blocks?.length)
instructorEditor.value = renderEditor(
'instructor-content',
data.instructor_content
@@ -448,6 +448,10 @@ updateDocumentTitle(pageMeta)
max-width: unset;
}
.codex-editor__redactor {
padding-bottom: 0px !important;
}
.codeBoxHolder {
display: flex;
flex-direction: column;

View File

@@ -62,7 +62,7 @@
</div>
<div class="">
<div class="sticky top-0 p-5">
<LessonPlugins :editor="editor" :notesEditor="instructorEditor" />
<LessonHelp />
</div>
</div>
</div>
@@ -79,7 +79,7 @@ import {
onBeforeUnmount,
} from 'vue'
import EditorJS from '@editorjs/editorjs'
import LessonPlugins from '@/components/LessonPlugins.vue'
import LessonHelp from '@/components/LessonHelp.vue'
import { ChevronRight } from 'lucide-vue-next'
import { updateDocumentTitle, createToast, getEditorTools } from '@/utils'
import { capture } from '@/telemetry'
@@ -473,6 +473,10 @@ updateDocumentTitle(pageMeta)
max-width: none;
}
.codex-editor--narrow .ce-toolbar__actions {
right: 100%;
}
.ce-toolbar__content {
max-width: none;
}