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
feat(attributes): grant the name box the row while it is being typed
Elian Doran3c5720666f77
diff --git a/apps/client/src/widgets/sidebar/AttributeCreationEditor.css b/apps/client/src/widgets/sidebar/AttributeCreationEditor.cssindex a9819a9617..a28d1906aa 100644--- a/apps/client/src/widgets/sidebar/AttributeCreationEditor.css+++ b/apps/client/src/widgets/sidebar/AttributeCreationEditor.css@@ -22,4 +22,18 @@& .attribute-creation-value {flex: 3 1 0;}++ /* While the name is the field being typed, it takes the lion's share instead — the same grant the+ value editor makes its one field: the completion drops a list exactly as wide as the box it+ belongs to, and a name is picked before a value is worth the room. Instant rather than eased:+ the list measures the box as it opens, and would keep a width caught mid-transition. */+ &:has(.attribute-creation-name:focus-within) {+ & .attribute-creation-name {+ flex: 5 1 0;+ }++ & .attribute-creation-value {+ flex: 1 1 0;+ }+ }}