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): cut the card in two where the system names begin
Elian Doran34952ad29afa
diff --git a/apps/client/src/widgets/dialogs/note_attributes.css b/apps/client/src/widgets/dialogs/note_attributes.cssindex d419cdd0c7..b84dab3d1c 100644--- a/apps/client/src/widgets/dialogs/note_attributes.css+++ b/apps/client/src/widgets/dialogs/note_attributes.css@@ -119,11 +119,17 @@ body.mobile .modal.note-attributes-modal {}}- /* What separates the note's own names from the ones Trilium reads for itself, drawn between two lists- of rows: inset to the rows' own text rather than run to the card's edges, where it would read as- the end of the card. */+ /* What separates the note's own names from the ones Trilium reads for itself. Two segments of one+ card rather than a list with a line ruled across it: what divides them is the modal's own surface+ showing between them, edge to edge — the card being a wash over that surface rather than a colour+ of its own, so this is the card ending and starting again. Drawn as a line in that colour, as an+ options card divides its own contents (`.options-section-card hr` in theme-next/pages.css); as+ wide as the gap the theme leaves between two sections of a card (Card.css). */.attribute-rows-divider {- margin-inline: 1em;+ margin: 0;+ border-top-width: 3px;+ border-top-color: var(--modal-background-color);+ opacity: 1;}.modal-dialog {diff --git a/apps/client/src/widgets/sidebar/AttributeList.tsx b/apps/client/src/widgets/sidebar/AttributeList.tsxindex a540a9fef8..1af0b56801 100644--- a/apps/client/src/widgets/sidebar/AttributeList.tsx+++ b/apps/client/src/widgets/sidebar/AttributeList.tsx@@ -280,7 +280,9 @@ interface AttributeSectionProps {*/function AttributeSection({ id, title, children, buttons, grow }: AttributeSectionProps) {if (IS_MOBILE) {- return <OptionsSection title={title} actions={buttons}>{children}</OptionsSection>;+ // The id names the section here too, as a class: it is what the right pane knows the section by,+ // and there is no reason for a stylesheet (or a test) to know it by anything else.+ return <OptionsSection className={id} title={title} actions={buttons}>{children}</OptionsSection>;}return (