diff --git a/frontend/src/components/BatchStudents.vue b/frontend/src/components/BatchStudents.vue
index 03d171d5..dce49cbf 100644
--- a/frontend/src/components/BatchStudents.vue
+++ b/frontend/src/components/BatchStudents.vue
@@ -63,13 +63,13 @@
class="flex items-center justify-center text-sm text-gray-700 space-x-4"
>
-
+
{{ __('Assessments') }}
@@ -352,8 +352,8 @@ const getChartData = () => {
}
const getChartOptions = (categories) => {
- const courseColor = '#0289F7'
- const assessmentColor = '#E03636'
+ const courseColor = '#0F736B'
+ const assessmentColor = '#0070CC'
const maxY =
students.data?.length % 5
? students.data?.length + (5 - (students.data?.length % 5))
@@ -362,7 +362,7 @@ const getChartOptions = (categories) => {
return {
chart: {
type: 'bar',
- height: 350,
+ height: 50,
toolbar: {
show: false,
},
@@ -371,16 +371,13 @@ const getChartOptions = (categories) => {
bar: {
distributed: true,
borderRadius: 0,
- horizontal: false,
- columnWidth: '5%',
+ horizontal: true,
+ barHeight: '30%',
},
},
colors: Object.values(categories).map((item) =>
item.type === 'course' ? courseColor : assessmentColor
),
- legends: {
- show: false,
- },
xaxis: {
categories: Object.values(categories).map((item) => item.label),
labels: {
@@ -388,6 +385,9 @@ const getChartOptions = (categories) => {
fontSize: '10px',
},
rotate: 0,
+ formatter: function (value) {
+ return value.length > 20 ? `${value.substring(0, 20)}...` : value // Trim long labels
+ },
},
},
yaxis: {
diff --git a/frontend/src/components/CourseCardOverlay.vue b/frontend/src/components/CourseCardOverlay.vue
index b5a3b150..0b28783d 100644
--- a/frontend/src/components/CourseCardOverlay.vue
+++ b/frontend/src/components/CourseCardOverlay.vue
@@ -87,25 +87,29 @@
-
- {{ __('This course has:') }}
-
-
-
-
- {{ course.data.lessons }} {{ __('Lessons') }}
-
-
-
-
-
- {{ formatAmount(course.data.enrollments) }}
- {{ __('Enrolled Students') }}
-
-
-
-
-
{{ course.data.rating }} {{ __('Rating') }}
+
+
+ {{ __('This course has:') }}
+
+
+
+
+ {{ course.data.lessons }} {{ __('Lessons') }}
+
+
+
+
+
+ {{ formatAmount(course.data.enrollments) }}
+ {{ __('Enrolled Students') }}
+
+
+
+
+
+ {{ course.data.rating }} {{ __('Rating') }}
+
+
diff --git a/frontend/src/pages/CourseDetail.vue b/frontend/src/pages/CourseDetail.vue
index bb123a92..a3ae48f6 100644
--- a/frontend/src/pages/CourseDetail.vue
+++ b/frontend/src/pages/CourseDetail.vue
@@ -16,7 +16,7 @@