From e716fd1bf9c86cf1c62eaf399ab7929c27e26ee1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 20 Jun 2023 11:44:49 +0200 Subject: [PATCH] fix(editor): list styling --- src/components/base/TipTap.vue | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/base/TipTap.vue b/src/components/base/TipTap.vue index 239c521dc..ca4595c1c 100644 --- a/src/components/base/TipTap.vue +++ b/src/components/base/TipTap.vue @@ -316,8 +316,8 @@ onBeforeUnmount(() => editor.value?.destroy()) } } -/* Table-specific styling */ .ProseMirror { + /* Table-specific styling */ table { border-collapse: collapse; table-layout: fixed; @@ -371,6 +371,20 @@ onBeforeUnmount(() => editor.value?.destroy()) margin: 0; } } + + // Lists + ul { + margin-left: .5rem; + margin-top: 0 !important; + + li { + margin-top: 0; + } + + p { + margin-bottom: 0 !important; + } + } } .tableWrapper { @@ -387,11 +401,6 @@ ul[data-type="taskList"] { list-style: none; padding: 0; margin-left: 0; - margin-top: 0; - - p { - margin-bottom: 0 !important; - } li { display: flex;