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

Move subject chip

parent 150f199c
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"
......@@ -20,7 +20,13 @@ import PersonChip from "aleksis.core/components/person/PersonChip.vue";
<span :class="{ 'text-right': !largeGrid }">
{{ documentation.course?.name }}
</span>
<div :class="{ 'd-flex align-center flex-wrap gap': true, 'justify-center': largeGrid }">
<subject-chip
v-if="documentation.subject"
:subject="documentation.subject"
v-bind="compact ? dialogActivator.attrs : {}"
v-on="compact ? dialogActivator.on : {}"
/>
<div :class="{ 'd-flex align-center flex-wrap gap': true }">
<person-chip
v-for="teacher in documentation.teachers"
:person="teacher"
......@@ -29,13 +35,6 @@ import PersonChip from "aleksis.core/components/person/PersonChip.vue";
v-on="compact ? dialogActivator.on : {}"
/>
</div>
<subject-chip
v-if="documentation.subject"
:subject="documentation.subject"
class="subject"
v-bind="compact ? dialogActivator.attrs : {}"
v-on="compact ? dialogActivator.on : {}"
/>
</div>
</template>
......@@ -84,8 +83,13 @@ export default {
justify-self: end;
}
.subject {
.grid.large-grid:nth-child(3) {
justify-self: center;
}
.grid:last-child {
justify-self: end;
justify-content: end;
}
.fit-content {
......
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