Merge pull request #783 from pateljannat/lesson-issues-3

fix: misc lesson issues
This commit is contained in:
Jannat Patel
2024-04-26 10:32:21 +05:30
committed by GitHub
9 changed files with 1013 additions and 806 deletions

View File

@@ -2,9 +2,9 @@
<div class="text-base">
<div
v-if="title && (outline.data?.length || allowEdit)"
class="flex items-center justify-between mb-4"
class="flex items-center justify-between mb-4 pl-2"
>
<div class="font-semibold" :class="allowEdit ? 'text-base' : 'text-lg'">
<div class="font-semibold text-lg">
{{ __(title) }}
</div>
<Button size="sm" v-if="allowEdit" @click="openChapterModal()">
@@ -73,7 +73,7 @@
</router-link>
</div>
</div>
<div v-if="allowEdit" class="flex mt-2 pl-8">
<div v-if="allowEdit" class="flex mt-2 mb-4 pl-8">
<router-link
:to="{
name: 'CreateLesson',

View File

@@ -24,7 +24,12 @@
<Quiz :quiz="getId(block)" />
</div>
<div v-else-if="block.includes('{{ Video')">
<video controls width="100%" controlsList="nodownload">
<video
controls
width="100%"
controlsList="nodownload"
oncontextmenu="return false;"
>
<source :src="getId(block)" type="video/mp4" />
</video>
</div>

View File

@@ -16,6 +16,7 @@
muted
width="100%"
controlsList="nodownload"
oncontextmenu="return false;"
class="rounded-sm"
>
<source src="/Youtube.mov" type="video/mp4" />