Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): content shifts when switching between read-only and editable (closes #11194)

Elian Doran744e79e3c68f
diff --git a/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css b/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css
index cf99720acd..754eaa3a48 100644
--- a/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css
+++ b/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css
@@ -47,8 +47,7 @@ body.heading-style-underline .note-detail-readonly-text-content {
}
.note-detail-readonly-text {
- padding-inline-start: 24px;
- padding-top: 10px;
+ padding: 1px var(--content-margin-inline) 0 var(--content-margin-inline);
font-family: var(--detail-font-family);
min-height: 50px;
position: relative;