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(client): make programmatic scrolling in code notes instant
Claudef29fc894a28b
diff --git a/apps/client/src/widgets/containers/scrolling_container.css b/apps/client/src/widgets/containers/scrolling_container.cssindex e759d3bb74..8779698422 100644--- a/apps/client/src/widgets/containers/scrolling_container.css+++ b/apps/client/src/widgets/containers/scrolling_container.css@@ -23,6 +23,13 @@ body.mobile .scrolling-container {--content-margin-inline: 8px;}+/* Programmatic jumps in a code note (go to line, search, scroll to end) can travel through the+ whole document; animating them makes CodeMirror render and discard every viewport along the+ way, so they land instantly instead. */+.note-split.type-code > .scrolling-container {+ scroll-behavior: auto;+}+.note-split.type-code:not(.mime-text-x-sqlite, .mime-text-x-markdown) {&> .scrolling-container {background-color: var(--code-background-color);