Skip to content

Commit a061554

Browse files
author
Dominik Grenz
committed
Remove checklist breadcrumb
1 parent 6dae07d commit a061554

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

personalization-webcomponents/src/components/ChecklistHeader.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ onMounted(() => {
6767
if (element) {
6868
element.innerHTML = props.checklist.title;
6969
}
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+
}
7082
});
7183
7284
const todoCount = computed(() => {
@@ -89,7 +101,7 @@ const doneCount = computed(() => {
89101
90102
.taskcontainer {
91103
display: grid;
92-
grid-template-columns: 90px 100px 100px;
104+
grid-template-columns: 100px 100px 100px;
93105
gap: 8px;
94106
}
95107

0 commit comments

Comments
 (0)