From 2691a846108c28f407eae0d1ed792ef4ea76091d Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 26 Sep 2021 20:53:27 +0200 Subject: [PATCH] feat: don't show bullet points of checklists --- src/components/input/editor.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue index eee6c770..a82ef121 100644 --- a/src/components/input/editor.vue +++ b/src/components/input/editor.vue @@ -417,6 +417,7 @@ export default { for (const check of textCheckbox) { check.removeEventListener('change', this.handleCheckboxClick) check.addEventListener('change', this.handleCheckboxClick) + check.parentElement.classList.add('has-checkbox') } } }) @@ -470,8 +471,15 @@ export default { .preview.content { margin-bottom: .5rem; - ul li input[type="checkbox"] { - margin-right: .5rem; + ul li { + input[type="checkbox"] { + margin-right: .5rem; + } + + &.has-checkbox { + margin-left: -2em; + list-style: none; + } } } }