Skip to content

Build your personal knowledge base with Trilium Notes

style/text editor/block toolbar button: fix position and z-index

Adorian Dorana9c5b99ae862
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index dc025bb66d..a291360c82 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -47,9 +47,11 @@
}
/* The toolbar show / hide button for the current text block */
-.ck.ck-block-toolbar-button {
+:root .ck.ck-block-toolbar-button {
--ck-color-button-on-background: transparent;
--ck-color-button-on-color: currentColor;
+ translate: -30% 0;
+ z-index: 5000;
}
:root .ck.ck-toolbar .ck-button:not(.ck-disabled):active,