feat: don't show bullet points of checklists
This commit is contained in:
parent
e17116dac1
commit
2691a84610
1 changed files with 10 additions and 2 deletions
|
@ -417,6 +417,7 @@ export default {
|
||||||
for (const check of textCheckbox) {
|
for (const check of textCheckbox) {
|
||||||
check.removeEventListener('change', this.handleCheckboxClick)
|
check.removeEventListener('change', this.handleCheckboxClick)
|
||||||
check.addEventListener('change', this.handleCheckboxClick)
|
check.addEventListener('change', this.handleCheckboxClick)
|
||||||
|
check.parentElement.classList.add('has-checkbox')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -470,9 +471,16 @@ export default {
|
||||||
.preview.content {
|
.preview.content {
|
||||||
margin-bottom: .5rem;
|
margin-bottom: .5rem;
|
||||||
|
|
||||||
ul li input[type="checkbox"] {
|
ul li {
|
||||||
|
input[type="checkbox"] {
|
||||||
margin-right: .5rem;
|
margin-right: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.has-checkbox {
|
||||||
|
margin-left: -2em;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue