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

Fix positioning of lesson-* elements in documentation

parent 5eae0311
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"
......@@ -6,13 +6,13 @@
<!-- flex-md-row zeile ab medium -->
<!-- align-stretch - stretch full-width -->
<div
<v-card-text
class="full-width d-flex flex-column align-stretch"
:class="{ 'flex-md-row': compact }"
>
<lesson-information v-if="compact" class="flex-110" v-bind="documentationPartProps" />
<lesson-summary
class="flex-grow-1"
:class="{ 'flex-110': compact }"
ref="summary"
v-bind="{ ...$attrs, ...documentationPartProps }"
:is-create="false"
......@@ -21,8 +21,8 @@
@loading="loading = $event"
@save="$emit('close')"
/>
<lesson-notes class="flex-grow-1" v-bind="documentationPartProps" />
</div>
<lesson-notes :class="{ 'flex-110': compact }" v-bind="documentationPartProps" />
</v-card-text>
<v-divider />
<v-card-actions v-if="!compact">
<v-spacer />
......@@ -69,3 +69,10 @@ export default {
},
};
</script>
<style scoped>
.flex-110 {
flex: 1 1 0;
width: 0;
}
</style>
<template>
<v-card-text class="d-flex align-center flex-wrap gap">
<div class="full-width d-flex align-center flex-wrap gap justify-space-around">
<div>
<time :datetime="documentation.datetimeStart" :class="{ 'd-block': compact }">
{{ $d(toDateTime(documentation.datetimeStart), "shortTime") }}
......@@ -16,7 +16,7 @@
class="ms-2"
:append-icon="documentation.canEdit ? '$edit' : undefined"
/>
</v-card-text>
</div>
</template>
<script>
......
<template>
<v-card-text
<div
class="d-flex align-center justify-space-between justify-md-end flex-wrap gap"
>
<v-chip dense color="success">
......@@ -26,7 +26,7 @@
>
Hausaufgaben vergessen
</v-chip>
</v-card-text>
</div>
</template>
<script>
......
<template>
<v-card-text>
<div>
<!-- compact -->
<div
class="d-flex flex-column flex-md-row align-stretch align-md-center gap justify-start"
......@@ -18,7 +18,7 @@
:loading="loading"
:disabled="!documentation.canEdit"
/>
<div class="d-flex flex-column align-start">
<div class="d-flex flex-column align-start flex-grow-1">
<v-chip
v-bind="dialogActivator.attrs"
v-on="dialogActivator.on"
......@@ -81,7 +81,7 @@
@input="groupNote = $event"
:disabled="!documentation.canEdit"
/>
</v-card-text>
</div>
</template>
<script>
......
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