Skip to content

Commit 015d5c1

Browse files
committed
💄 fix layout bug in checklists-overview
1 parent 0cc703a commit 015d5c1

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

personalization-webcomponents/src/my-checklists.vue

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,48 @@
11
<template>
22
<main class="container">
33
<!-- eslint-disable-next-line vue/no-v-html -->
4-
<div v-html="mucIconsSprite" />
4+
<div v-html="mucIconsSprite"/>
55
<!-- eslint-disable-next-line vue/no-v-html -->
6-
<div v-html="customIconsSprite" />
6+
<div v-html="customIconsSprite"/>
77
<h2 style="display: flex; align-items: center; margin-bottom: 24px">
88
<muc-icon
9-
style="width: 32px; height: 32px; margin-right: 8px"
10-
icon="order-bool-ascending"
9+
style="width: 32px; height: 32px; margin-right: 8px"
10+
icon="order-bool-ascending"
1111
></muc-icon>
1212
Aktive Checklisten ({{ checklists.length }})
1313
</h2>
14-
<muc-card-container class="checklist-card-container">
15-
<div v-if="loading">
16-
<skeleton-loader
14+
<muc-card-container
15+
v-if="loading"
16+
class="checklist-card-container"
17+
>
18+
<skeleton-loader
1719
v-for="elem in [1, 2, 3, 4]"
1820
:key="elem"
19-
>
20-
</skeleton-loader>
21-
</div>
22-
<div v-else>
23-
<checklist-card
21+
>
22+
</skeleton-loader>
23+
</muc-card-container>
24+
<muc-card-container
25+
v-else
26+
class="checklist-card-container"
27+
>
28+
<checklist-card
2429
v-for="(checklist, index) in checklists"
2530
:key="index"
2631
:checklist="checklist"
27-
>
28-
</checklist-card>
29-
</div>
3032
:checklist-detail-url="checklistDetailUrl"
3133
>
34+
</checklist-card>
3235
</muc-card-container>
3336
</main>
3437
</template>
3538

3639
<script setup lang="ts">
3740
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
3841
39-
import { MucCardContainer, MucIcon } from "@muenchen/muc-patternlab-vue";
42+
import {MucCardContainer, MucIcon} from "@muenchen/muc-patternlab-vue";
4043
import customIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw";
4144
import mucIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw";
42-
import { onMounted, ref } from "vue";
45+
import {onMounted, ref} from "vue";
4346
4447
import DummyChecklistService from "@/api/dummyservice/DummyChecklistService.ts";
4548
import ChecklistCard from "@/components/ChecklistCard.vue";
@@ -57,11 +60,11 @@ onMounted(() => {
5760
loading.value = true;
5861
const dcl = new DummyChecklistService();
5962
dcl
60-
.getChecklists()
61-
.then((checklist) => {
62-
checklists.value = checklist;
63-
})
64-
.finally(() => (loading.value = false));
63+
.getChecklists()
64+
.then((checklist) => {
65+
checklists.value = checklist;
66+
})
67+
.finally(() => (loading.value = false));
6568
});
6669
</script>
6770

0 commit comments

Comments
 (0)