fix(backend): Verschillende kleine fixes

This commit is contained in:
Gerald Schmittinger 2025-04-01 00:49:52 +02:00
parent dc99835a9d
commit be78e7f44d
3 changed files with 25 additions and 17 deletions

View file

@ -12,7 +12,7 @@
const { t } = useI18n(); const { t } = useI18n();
const errorMessage = computed(() => { const errorMessage = computed(() => {
let errorWithMessage = (error as {message: string}) || null; let errorWithMessage = (error.value as {message: string}) || null;
return errorWithMessage?.message || JSON.stringify(errorWithMessage) return errorWithMessage?.message || JSON.stringify(errorWithMessage)
}); });
</script> </script>

View file

@ -29,4 +29,10 @@ const learningObjectHtmlQueryResult: UseQueryReturnType<Document, Error> = useLe
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
:deep(img) {
max-width: 80%;
}
:deep(h2), :deep(h3), :deep(h4), :deep(h5), :deep(h6) {
margin-top: 10px;
}
</style> </style>

View file

@ -145,22 +145,24 @@
:query-result="learningObjectListQueryResult" :query-result="learningObjectListQueryResult"
v-slot="learningObjects: {data: LearningObject[]}" v-slot="learningObjects: {data: LearningObject[]}"
> >
<v-list-item <template v-for="node in learningObjects.data">
link <v-list-item
:to="{path: node.key, query: route.query}" link
:title="node.title" :to="{path: node.key, query: route.query}"
:active="node.key === props.learningObjectHruid" :title="node.title"
v-for="node in learningObjects.data" :active="node.key === props.learningObjectHruid"
> v-if="!node.teacherExclusive || authService.authState.activeRole === 'teacher'"
<template v-slot:prepend> >
<v-icon <template v-slot:prepend>
:color="COLORS[getNavItemState(node)]" <v-icon
:icon="ICONS[getNavItemState(node)]"></v-icon> :color="COLORS[getNavItemState(node)]"
</template> :icon="ICONS[getNavItemState(node)]"></v-icon>
<template v-slot:append> </template>
{{ node.estimatedTime }}' <template v-slot:append>
</template> {{ node.estimatedTime }}'
</v-list-item> </template>
</v-list-item>
</template>
</using-query-result> </using-query-result>
</div> </div>
</v-navigation-drawer> </v-navigation-drawer>