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(autocomplete): keep the list's inset visible around a scrolled-to row
Elian Doraned3e215308bf
diff --git a/apps/client/src/widgets/react/FormAutocomplete.css b/apps/client/src/widgets/react/FormAutocomplete.cssindex 8e3c656e02..55e71e2066 100644--- a/apps/client/src/widgets/react/FormAutocomplete.css+++ b/apps/client/src/widgets/react/FormAutocomplete.css@@ -17,6 +17,7 @@/* The entries sit inside the rounded border rather than against it, so a highlighted one is arounded chip within the menu instead of a band across it. */padding: var(--suggestion-list-padding);+ scroll-padding-block: var(--suggestion-list-padding);list-style: none;overflow-y: auto;font-size: 0.9rem;diff --git a/apps/client/src/widgets/react/Popup.css b/apps/client/src/widgets/react/Popup.cssindex 31264cb583..33f6576eeb 100644--- a/apps/client/src/widgets/react/Popup.css+++ b/apps/client/src/widgets/react/Popup.css@@ -37,6 +37,7 @@ body .tn-popup {*/margin: calc(0px - var(--tn-popup-padding));padding: var(--tn-popup-padding);+ scroll-padding-block: var(--tn-popup-padding);border-radius: inherit;overflow-y: auto;}