3
3
tagline =" Checkliste"
4
4
:title =" checklist.title"
5
5
:img =" getChecklistIconByTitle(checklist.title)"
6
- : imgAlt =" checklist.title "
6
+ imgAlt =" "
7
7
>
8
- <p style =" padding-bottom : 18 px " >
8
+ <p style =" padding-bottom : 16 px " >
9
9
<b >Erstellungsdatum: </b
10
- >{{ props.checklist.lastUpdated.toLocaleString() }}
10
+ >{{ props.checklist.lastUpdated.toLocaleString().split(",")[0] }}
11
11
</p >
12
- <p >
13
- <b >Aufgaben: </b >
14
- <muc-chip
15
- v-if =" todoCount"
16
- style =" margin-right : 16px "
17
- background-color =" #FDD1AC"
18
- >
19
- {{ todoCount }} offen
20
- <svg
21
- style =" margin-left : 8px ; width : 20px ; height : 20px "
22
- aria-hidden =" true"
23
- class =" m-button__icon"
12
+ <div class =" taskcontainer" >
13
+ <div class =" task" >Aufgaben:</div >
14
+ <div class =" chip" >
15
+ <muc-chip
16
+ v-if =" todoCount"
17
+ style =" margin-right : 8px "
18
+ background-color =" #FDD1AC"
24
19
>
25
- <use href =" #icon-pencil" />
26
- </svg >
27
- </muc-chip >
28
- <muc-chip
29
- v-if =" doneCount"
30
- background-color =" #B7D2B7"
31
- >
32
- {{ doneCount }} erledigt
33
- <svg
34
- style =" margin-left : 8px ; width : 20px ; height : 20px "
35
- aria-hidden =" true"
36
- class =" m-button__icon"
20
+ {{ todoCount }} offen
21
+ <svg
22
+ style =" margin-left : 8px ; width : 20px ; height : 20px "
23
+ aria-hidden =" true"
24
+ class =" m-button__icon"
25
+ >
26
+ <use href =" #icon-pencil" />
27
+ </svg >
28
+ </muc-chip >
29
+ </div >
30
+
31
+ <div class =" chip" >
32
+ <muc-chip
33
+ v-if =" doneCount"
34
+ background-color =" #B7D2B7"
37
35
>
38
- <use href =" #icon-check" />
39
- </svg >
40
- </muc-chip >
41
- </p >
36
+ {{ doneCount }} erledigt
37
+ <svg
38
+ style =" margin-left : 8px ; width : 20px ; height : 20px "
39
+ aria-hidden =" true"
40
+ class =" m-button__icon"
41
+ >
42
+ <use href =" #icon-check" />
43
+ </svg >
44
+ </muc-chip >
45
+ </div >
46
+ </div >
42
47
</muc-intro >
43
48
</template >
44
49
45
50
<script setup lang="ts">
46
51
import type DummyChecklist from " @/api/dummyservice/DummyChecklist.ts" ;
47
52
48
53
import { MucIntro } from " @muenchen/muc-patternlab-vue" ;
49
- import { computed } from " vue" ;
54
+ import { computed , onMounted } from " vue" ;
50
55
51
56
import MucChip from " @/components/common/muc-chip.vue" ;
52
57
import { getChecklistIconByTitle } from " @/util/constants.ts" ;
@@ -55,6 +60,15 @@ const props = defineProps<{
55
60
checklist: DummyChecklist ;
56
61
}>();
57
62
63
+ onMounted (() => {
64
+ const element = document .querySelector (
65
+ ' [data-fragment-placeholder="breadcrumb-label"]'
66
+ );
67
+ if (element ) {
68
+ element .innerHTML = props .checklist .title ;
69
+ }
70
+ });
71
+
58
72
const todoCount = computed (() => {
59
73
return props .checklist .items .filter ((value ) => ! value .checked ).length ;
60
74
});
@@ -63,3 +77,31 @@ const doneCount = computed(() => {
63
77
return props .checklist .items .filter ((value ) => value .checked ).length ;
64
78
});
65
79
</script >
80
+ <style >
81
+ .muc-divider {
82
+ margin-top : 0 !important ;
83
+ margin-bottom : 32px !important ;
84
+ }
85
+
86
+ .m-intro-vertical__title {
87
+ margin-bottom : 8px !important ;
88
+ }
89
+
90
+ .taskcontainer {
91
+ display : grid ;
92
+ grid-template-columns : 90px 100px 100px ;
93
+ gap : 8px ;
94
+ }
95
+
96
+ .task {
97
+ padding-top : 3px ;
98
+ text-align : left ;
99
+ font-weight : bold ;
100
+ }
101
+
102
+ @media (max-width : 450px ) {
103
+ .chip :nth-child (3 ) {
104
+ grid-column : 2 ;
105
+ }
106
+ }
107
+ </style >
0 commit comments