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
attr detail sizing
zadam9b15437ff6df
diff --git a/src/public/app/widgets/attribute_detail.js b/src/public/app/widgets/attribute_detail.jsindex 697414d66e..6ca25f6e1c 100644--- a/src/public/app/widgets/attribute_detail.js+++ b/src/public/app/widgets/attribute_detail.js@@ -360,6 +360,12 @@ export default class AttributeDetailWidget extends BasicWidget {this.$widget.css("left", x - this.$widget.outerWidth() / 2);this.$widget.css("top", y + 25);++ // so that the detail window always fits+ this.$widget.css("max-height",+ this.$widget.outerHeight() + y > $(window).height() - 50+ ? $(window).height() - y - 50+ : 10000);}getAttrType(attribute) {