fix: list and table formatting in lesson

This commit is contained in:
Jannat Patel
2025-01-09 17:07:57 +05:30
parent 54b7f811f7
commit ecc12d783a
5 changed files with 20 additions and 5 deletions

View File

@@ -163,7 +163,7 @@ onMounted(() => {
const batches = createResource({
doctype: 'LMS Batch',
url: 'lms.lms.utils.get_batches',
cache: ['batches', user.data?.email],
cache: ['batches', user.data?.email || ''],
auto: true,
})

View File

@@ -475,7 +475,8 @@ updateDocumentTitle(pageMeta)
font-weight: 500;
}
.embed-tool__caption {
.embed-tool__caption,
.cdx-simple-image__caption {
display: none;
}
@@ -585,4 +586,8 @@ iframe {
border-top: 3px solid theme('colors.gray.700');
border-bottom: 3px solid theme('colors.gray.700');
}
.tc-table {
border-left: 1px solid #e8e8eb;
}
</style>

View File

@@ -619,4 +619,8 @@ iframe {
border-top: 3px solid theme('colors.gray.700');
border-bottom: 3px solid theme('colors.gray.700');
}
.tc-table {
border-left: 1px solid #e8e8eb;
}
</style>

View File

@@ -1,8 +1,10 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { createResource } from 'frappe-ui'
import { sessionStore } from './session'
export const useSettings = defineStore('settings', () => {
const { isLoggedIn } = sessionStore()
const isSettingsOpen = ref(false)
const activeTab = ref(null)
const learningPaths = createResource({
@@ -13,13 +15,13 @@ export const useSettings = defineStore('settings', () => {
field: 'enable_learning_paths',
}
},
auto: true,
auto: isLoggedIn ? true : false,
cache: ['learningPaths'],
})
const onboardingDetails = createResource({
url: 'lms.lms.utils.is_onboarding_complete',
auto: true,
auto: isLoggedIn ? true : false,
cache: ['onboardingDetails'],
})

View File

@@ -160,7 +160,10 @@ export function getEditorTools() {
upload: Upload,
markdown: Markdown,
image: SimpleImage,
table: Table,
table: {
class: Table,
inlineToolbar: true,
},
paragraph: {
class: Paragraph,
inlineToolbar: true,
@@ -179,6 +182,7 @@ export function getEditorTools() {
},
list: {
class: NestedList,
inlineToolbar: true,
config: {
defaultStyle: 'ordered',
},