diff --git a/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte b/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte index 67503abc..dc929a22 100644 --- a/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte @@ -1,7 +1,8 @@ {#if !isNoteEmpty($lesson.materials?.note)} -
- {@html $lesson.materials.note} -
+ + +
+ {@html $lesson.materials.note} +
+
+
{/if} diff --git a/src/lib/components/Course/components/Lesson/Materials/index.svelte b/src/lib/components/Course/components/Lesson/Materials/index.svelte index 6c3efd5c..87337fd9 100644 --- a/src/lib/components/Course/components/Lesson/Materials/index.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/index.svelte @@ -10,7 +10,6 @@ import AlignBoxTopLeftIcon from 'carbon-icons-svelte/lib/AlignBoxTopLeft.svelte'; import ListIcon from 'carbon-icons-svelte/lib/List.svelte'; import IbmWatsonKnowledgeStudioIcon from 'carbon-icons-svelte/lib/IbmWatsonKnowledgeStudio.svelte'; - import MachineLearningModel from 'carbon-icons-svelte/lib/MachineLearningModel.svelte'; import MagicWandFilled from 'carbon-icons-svelte/lib/MagicWandFilled.svelte'; import Tabs from '$lib/components/Tabs/index.svelte'; import TabContent from '$lib/components/TabContent/index.svelte'; @@ -126,7 +125,7 @@ api: '/api/completion' }); - function updateNoteByCompletion(completion) { + function updateNoteByCompletion(completion: string) { $lesson.materials.note = completion; autoSave($lesson.materials); @@ -240,143 +239,143 @@

{lessonTitle}

- - {#if mode === MODES.edit} - - - -
- { - openPopover = !openPopover; - }} - isLoading={$isLoading} - isDisabled={$isLoading} - variant={VARIANTS.OUTLINED} - > - - AI - { - openPopover = aiButtonRef?.contains(detail.target); - }} - > -
- - - -
-
-
-
- -
- ($lesson.materials.note = html)} - placeholder="Write your lesson note here" - /> -
-
- - - {#if mode === MODES.edit} - - {/if} - - - - {#if $lesson.materials.videos.length} -
- {#each $lesson.materials.videos as video, index} - {#if mode === MODES.edit} -
- deleteLessonVideo(index)} - > - - -
- {/if} -
- {#key video.link} -
- {#if video.type === 'youtube'} -