feat: don't show bullet points of checklists

This commit is contained in:
kolaente 2021-09-26 20:53:27 +02:00
parent e17116dac1
commit 2691a84610
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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;
}
}
} }
} }