Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(text): stop RTL to-do checkboxes overlapping the item text (closes #10949)
Elian Doranddc83a687c57
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 4a7cc0326f..73f869f01a 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -3141,6 +3141,8 @@ iframe.print-iframe {variant — this makes both variants share one deterministic geometry. */position: absolute;top: calc((1lh - var(--_checkbox-size)) / 2);+ inset-inline-start: -25px;+ inset-inline-end: auto;/* `1lh` must resolve against the text's line height, not the UA form-controlfont, and the UA's 3px checkbox margins would offset the absolute position.(Bootstrap's reboot happens to do both, but don't depend on it.) */diff --git a/packages/share-theme/src/styles/task-states.css b/packages/share-theme/src/styles/task-states.cssindex 2baac147bb..5f4a1515de 100644--- a/packages/share-theme/src/styles/task-states.css+++ b/packages/share-theme/src/styles/task-states.css@@ -72,6 +72,8 @@ html.theme-dark [data-trilium-task-state] {.ck-content.ck-content .todo-list li .todo-list__label input[type="checkbox"] {position: absolute;top: calc((1lh - var(--ck-content-todo-list-checkmark-size)) / 2);+ inset-inline-start: -25px;+ inset-inline-end: auto;/* `1lh` must resolve against the text's line height, not the UA form-controlfont, and the UA's 3px checkbox margins would offset the absolute position. */margin: 0;