Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): block drag icon overlaps with text in legacy themes (closes #10903)

Elian Doran8bbdf04a4057
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index bf224225e2..4a7cc0326f 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -664,7 +664,7 @@ button.btn-sm {
color: var(--left-pane-text-color);
}
-.ck.ck-block-toolbar-button {
+.ck.ck-button.ck-block-toolbar-button {
transform: translateX(7px);
color: var(--muted-text-color);
background-color: var(--main-background-color);
@@ -672,6 +672,8 @@ button.btn-sm {
min-width: 0;
padding: 0;
z-index: 1000;
+ translate: -40% 0;
+ padding: 0;
}
body[dir=rtl] .ck.ck-block-toolbar-button {
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index d9f2a2686e..b4a01357b5 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -59,9 +59,6 @@
--ck-color-button-default-hover-background: var(--block-toolbar-button-hover-surface);
--ck-color-button-on-hover-background: var(--block-toolbar-button-hover-surface);
--ck-color-button-on-color: var(--ck-editor-toolbar-button-on-color);
- translate: -40% 0;
- min-width: 0;
- padding: 0;
z-index: 1600;
}