From cd33e1b05f9ff20e0d92513bde586fe9833c067b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 19 Apr 2021 16:03:47 +0200 Subject: [PATCH] Add CSS for making empty paragraph elements visible --- ts/editor/editable.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts/editor/editable.scss b/ts/editor/editable.scss index 9cd7186f3..7489a48a4 100644 --- a/ts/editor/editable.scss +++ b/ts/editor/editable.scss @@ -16,6 +16,16 @@ anki-editable { } } +p { + margin-top: 0; + margin-bottom: 1rem; + + &:empty::after { + content: "\a"; + white-space: pre; + } +} + :host-context(.nightMode) * { @include scrollbar.night-mode; }