Merge pull request #1239 from pateljannat/issues-64
fix: made course list responsive for bigger screen sizes
This commit is contained in:
@@ -163,7 +163,7 @@ onMounted(() => {
|
|||||||
const batches = createResource({
|
const batches = createResource({
|
||||||
doctype: 'LMS Batch',
|
doctype: 'LMS Batch',
|
||||||
url: 'lms.lms.utils.get_batches',
|
url: 'lms.lms.utils.get_batches',
|
||||||
cache: ['batches', user.data?.email],
|
cache: ['batches', user.data?.email || ''],
|
||||||
auto: true,
|
auto: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<template #default="{ tab }">
|
<template #default="{ tab }">
|
||||||
<div
|
<div
|
||||||
v-if="tab.courses && tab.courses.value.length"
|
v-if="tab.courses && tab.courses.value.length"
|
||||||
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 my-5 mx-5"
|
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5 gap-7 my-5 mx-5"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
v-for="course in tab.courses.value"
|
v-for="course in tab.courses.value"
|
||||||
|
|||||||
@@ -475,7 +475,8 @@ updateDocumentTitle(pageMeta)
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed-tool__caption {
|
.embed-tool__caption,
|
||||||
|
.cdx-simple-image__caption {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,4 +586,8 @@ iframe {
|
|||||||
border-top: 3px solid theme('colors.gray.700');
|
border-top: 3px solid theme('colors.gray.700');
|
||||||
border-bottom: 3px solid theme('colors.gray.700');
|
border-bottom: 3px solid theme('colors.gray.700');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-table {
|
||||||
|
border-left: 1px solid #e8e8eb;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -619,4 +619,8 @@ iframe {
|
|||||||
border-top: 3px solid theme('colors.gray.700');
|
border-top: 3px solid theme('colors.gray.700');
|
||||||
border-bottom: 3px solid theme('colors.gray.700');
|
border-bottom: 3px solid theme('colors.gray.700');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-table {
|
||||||
|
border-left: 1px solid #e8e8eb;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { createResource } from 'frappe-ui'
|
import { createResource } from 'frappe-ui'
|
||||||
|
import { sessionStore } from './session'
|
||||||
|
|
||||||
export const useSettings = defineStore('settings', () => {
|
export const useSettings = defineStore('settings', () => {
|
||||||
|
const { isLoggedIn } = sessionStore()
|
||||||
const isSettingsOpen = ref(false)
|
const isSettingsOpen = ref(false)
|
||||||
const activeTab = ref(null)
|
const activeTab = ref(null)
|
||||||
const learningPaths = createResource({
|
const learningPaths = createResource({
|
||||||
@@ -13,13 +15,13 @@ export const useSettings = defineStore('settings', () => {
|
|||||||
field: 'enable_learning_paths',
|
field: 'enable_learning_paths',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
auto: true,
|
auto: isLoggedIn ? true : false,
|
||||||
cache: ['learningPaths'],
|
cache: ['learningPaths'],
|
||||||
})
|
})
|
||||||
|
|
||||||
const onboardingDetails = createResource({
|
const onboardingDetails = createResource({
|
||||||
url: 'lms.lms.utils.is_onboarding_complete',
|
url: 'lms.lms.utils.is_onboarding_complete',
|
||||||
auto: true,
|
auto: isLoggedIn ? true : false,
|
||||||
cache: ['onboardingDetails'],
|
cache: ['onboardingDetails'],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,10 @@ export function getEditorTools() {
|
|||||||
upload: Upload,
|
upload: Upload,
|
||||||
markdown: Markdown,
|
markdown: Markdown,
|
||||||
image: SimpleImage,
|
image: SimpleImage,
|
||||||
table: Table,
|
table: {
|
||||||
|
class: Table,
|
||||||
|
inlineToolbar: true,
|
||||||
|
},
|
||||||
paragraph: {
|
paragraph: {
|
||||||
class: Paragraph,
|
class: Paragraph,
|
||||||
inlineToolbar: true,
|
inlineToolbar: true,
|
||||||
@@ -179,6 +182,7 @@ export function getEditorTools() {
|
|||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
class: NestedList,
|
class: NestedList,
|
||||||
|
inlineToolbar: true,
|
||||||
config: {
|
config: {
|
||||||
defaultStyle: 'ordered',
|
defaultStyle: 'ordered',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ module.exports = {
|
|||||||
strokeWidth: {
|
strokeWidth: {
|
||||||
1.5: '1.5',
|
1.5: '1.5',
|
||||||
},
|
},
|
||||||
|
screens: {
|
||||||
|
'2xl': '1536px',
|
||||||
|
'3xl': '1920px',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
|
|||||||
@@ -1244,6 +1244,7 @@ def get_batch_card_details(batchname):
|
|||||||
"end_time",
|
"end_time",
|
||||||
"timezone",
|
"timezone",
|
||||||
"published",
|
"published",
|
||||||
|
"category",
|
||||||
],
|
],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user