added support for short course names in the case of super long names (looking at you RSLC)

This commit is contained in:
2025-11-21 11:25:50 -05:00
parent 1dcffef2c2
commit 856f34f0fa
3 changed files with 3 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ onMounted(async () => {
<TableBody v-if="loaded">
<TableRow class="cursor-pointer" v-for="report in trainingReports" :key="report.event_id"
@click="viewTrainingReport(report.event_id);">
<TableCell class="font-medium">{{ report.course_name }}</TableCell>
<TableCell class="font-medium">{{ report.course_name.length > 30 ? report.course_shortname : report.course_name }}</TableCell>
<TableCell>{{ report.date }}</TableCell>
<TableCell class="text-right">{{ report.created_by_name === null ? "Unknown User" :
report.created_by_name