5
5
:img =" getChecklistIconByTitle(checklist.title)"
6
6
imgAlt =" "
7
7
>
8
- <p style =" padding-bottom : 16px " >
8
+ <div style =" padding-bottom : 16px ; padding-left : 3 px " >
9
9
<b >Erstellungsdatum: </b
10
10
>{{ props.checklist.lastUpdated.toLocaleString().split(",")[0] }}
11
- </p >
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"
19
- >
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"
35
- >
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
11
</div >
12
+ <table >
13
+ <tr >
14
+ <td class =" task" >Aufgaben:</td >
15
+ <td >
16
+ <div class =" chips-container" >
17
+ <muc-chip
18
+ v-if =" todoCount"
19
+ background-color =" #FDD1AC"
20
+ >
21
+ {{ todoCount }} offen
22
+ <svg
23
+ style =" margin-left : 8px ; width : 20px ; height : 20px "
24
+ aria-hidden =" true"
25
+ class =" m-button__icon"
26
+ >
27
+ <use href =" #icon-pencil" />
28
+ </svg >
29
+ </muc-chip >
30
+ <muc-chip
31
+ v-if =" doneCount"
32
+ background-color =" #B7D2B7"
33
+ >
34
+ {{ doneCount }} erledigt
35
+ <svg
36
+ style =" margin-left : 8px ; width : 20px ; height : 20px "
37
+ aria-hidden =" true"
38
+ class =" m-button__icon"
39
+ >
40
+ <use href =" #icon-check" />
41
+ </svg >
42
+ </muc-chip >
43
+ </div >
44
+ </td >
45
+ </tr >
46
+ </table >
47
47
</muc-intro >
48
48
</template >
49
49
@@ -67,6 +67,18 @@ onMounted(() => {
67
67
if (element ) {
68
68
element .innerHTML = props .checklist .title ;
69
69
}
70
+
71
+ // Don't show breadcrump "Checkliste"
72
+ const removeChecklist = document .querySelector (
73
+ " .m-breadcrumb__list-item-current"
74
+ );
75
+ if (removeChecklist ) {
76
+ removeChecklist .childNodes .forEach ((node ) => {
77
+ if (node .nodeType === 3 ) {
78
+ node .textContent = " " ;
79
+ }
80
+ });
81
+ }
70
82
});
71
83
72
84
const todoCount = computed (() => {
@@ -87,21 +99,24 @@ const doneCount = computed(() => {
87
99
margin-bottom : 8px !important ;
88
100
}
89
101
90
- .taskcontainer {
91
- display : grid ;
92
- grid-template-columns : 90px 100px 100px ;
93
- gap : 8px ;
94
- }
95
-
96
102
.task {
97
- padding-top : 3px ;
98
- text-align : left ;
99
103
font-weight : bold ;
104
+ vertical-align : baseline ;
105
+ padding-right : 8px ;
106
+ white-space : nowrap ;
107
+ }
108
+
109
+ .chips-container {
110
+ display : flex ;
111
+ gap : 8px ;
112
+ flex-wrap : nowrap ;
100
113
}
101
114
102
115
@media (max-width : 450px ) {
103
- .chip :nth-child (3 ) {
104
- grid-column : 2 ;
116
+ .chips-container {
117
+ flex-wrap : wrap ;
118
+ flex-direction : column ;
119
+ gap : 8px ;
105
120
}
106
121
}
107
122
</style >
0 commit comments