From 28eae0667a048f2df5ccd9fd635bf1f467777f15 Mon Sep 17 00:00:00 2001 From: BlueGreenMagick Date: Wed, 31 Aug 2022 17:35:01 +0900 Subject: [PATCH] fix wrong rich-text-widget offset (#2033) .rich-text-input { padding: 6px; } messed up image & mathjax overlay positioning because parent padding isn't added to absolute positioning px --- ts/editor/FieldDescription.svelte | 3 --- ts/editor/rich-text-input/RichTextInput.svelte | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ts/editor/FieldDescription.svelte b/ts/editor/FieldDescription.svelte index 41f2cd105..40ba2927c 100644 --- a/ts/editor/FieldDescription.svelte +++ b/ts/editor/FieldDescription.svelte @@ -40,9 +40,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html opacity: 0.4; pointer-events: none; - /* same as in ContentEditable */ - padding: 6px; - /* stay a on single line */ overflow-x: hidden; white-space: nowrap; diff --git a/ts/editor/rich-text-input/RichTextInput.svelte b/ts/editor/rich-text-input/RichTextInput.svelte index c04813c95..47be4117a 100644 --- a/ts/editor/rich-text-input/RichTextInput.svelte +++ b/ts/editor/rich-text-input/RichTextInput.svelte @@ -244,7 +244,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html