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
style/floating buttons: fix the offset of the "Show buttons" button on canvas notes
Adorian Dorand276cdf5192d
diff --git a/apps/client/src/widgets/FloatingButtons.css b/apps/client/src/widgets/FloatingButtons.cssindex 41afefed99..f4fc8a092a 100644--- a/apps/client/src/widgets/FloatingButtons.css+++ b/apps/client/src/widgets/FloatingButtons.css@@ -6,8 +6,8 @@.floating-buttons-children,.show-floating-buttons {position: absolute;- top: 10px;- right: 10px;+ top: var(--floating-buttons-vert-offset, 10px);+ right: var(--floating-buttons-horiz-offset, 10px);display: flex;flex-direction: row;z-index: 100;@@ -28,8 +28,8 @@transform: rotate(180deg);}-.type-canvas .floating-buttons-children {- top: 70px;+.type-canvas {+ --floating-buttons-vert-offset: 70px;}.type-canvas .floating-buttons-children > * {