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

Make times right aligned

parent adf8d2f2
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 #177183 failed
<template>
<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") }}
</time>
<span v-if="!compact"></span>
<time :datetime="documentation.datetimeEnd" :class="{ 'd-block': compact }">
{{ $d(toDateTime(documentation.datetimeEnd), "shortTime") }}
</time>
<div :class="{ 'text-right d-flex flex-column fit-content': compact }">
<time :datetime="documentation.datetimeStart" class="text-no-wrap">
{{ $d(toDateTime(documentation.datetimeStart), "shortTime") }}
</time>
<span v-if="!compact"></span>
<time :datetime="documentation.datetimeEnd" class="text-no-wrap">
{{ $d(toDateTime(documentation.datetimeEnd), "shortTime") }}
</time>
</div>
</div>
<span class="text-center">
{{ documentation.course?.name }}
......@@ -51,4 +53,8 @@ export default {
.subject {
justify-self: end;
}
.fit-content {
width: fit-content;
}
</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