Merge pull request #791 from pateljannat/issues-5

fix: misc fixes
This commit is contained in:
Jannat Patel
2024-04-30 11:12:55 +05:30
committed by GitHub
7 changed files with 39 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
<div class="text-base">
<div
v-if="title && (outline.data?.length || allowEdit)"
class="flex items-center justify-between mb-4 pl-2"
class="grid grid-cols-[70%,30%] mb-4 px-3"
>
<div class="font-semibold text-lg">
{{ __(title) }}

View File

@@ -149,6 +149,12 @@ updateDocumentTitle(pageMeta)
padding: revert;
}
.course-description ul {
list-style: disc;
margin: revert;
padding: revert;
}
.avatar-group {
display: inline-flex;
align-items: center;

View File

@@ -122,7 +122,7 @@
<div class="text-lg font-semibold mt-5 mb-4">
{{ __('Settings') }}
</div>
<div class="flex items-center justify-between mb-5">
<div class="flex items-center justify-between mb-4">
<FormControl
type="checkbox"
v-model="course.published"
@@ -139,6 +139,12 @@
:label="__('Disable Self Enrollment')"
/>
</div>
<FormControl
v-model="course.published_on"
:label="__('Published On')"
type="date"
class="mb-5"
/>
</div>
<div class="container border-t">
<div class="text-lg font-semibold mt-5 mb-4">
@@ -212,6 +218,7 @@ const course = reactive({
course_image: null,
tags: '',
published: false,
published_on: '',
upcoming: false,
disable_self_learning: false,
paid_course: false,
@@ -358,7 +365,7 @@ watch(
const validateFile = (file) => {
let extension = file.name.split('.').pop().toLowerCase()
if (!['jpg', 'jpeg', 'png'].includes(extension)) {
if (!['jpg', 'jpeg', 'png', 'webp'].includes(extension)) {
return 'Only image file is allowed.'
}
}