Skip to content
Snippets Groups Projects
Commit b125af74 authored by Julian's avatar Julian
Browse files

Unify spacing of LessonInformation

parent 2e589ca5
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
Pipeline #176141 failed
<template>
<div class="full-width d-flex align-center flex-wrap gap justify-space-around">
<div :class="{ 'full-width grid mr-0': true, 'mr-md-4': compact }">
<div>
<time :datetime="documentation.datetimeStart" :class="{ 'd-block': compact }">
{{ $d(toDateTime(documentation.datetimeStart), "shortTime") }}
......@@ -9,11 +9,13 @@
{{ $d(toDateTime(documentation.datetimeEnd), "shortTime") }}
</time>
</div>
{{ documentation.course?.name }}
<span class="text-center">
{{ documentation.course?.name }}
</span>
<subject-chip
v-if="documentation.subject"
:subject="documentation.subject"
class="ms-2"
class="subject"
:append-icon="documentation.canEdit ? '$edit' : undefined"
/>
</div>
......@@ -39,7 +41,14 @@ export default {
</script>
<style scoped>
.gap {
.grid {
display: grid;
grid-template-columns: 1fr max-content 1fr;
align-items: center;
gap: 1em;
}
.subject {
justify-self: end;
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment