Skip to content

Build your personal knowledge base with Trilium Notes

fix(attributes): tidy the attributes modal on a phone

Elian Dorana3ee6a754be5
diff --git a/apps/client/src/widgets/dialogs/note_attributes.css b/apps/client/src/widgets/dialogs/note_attributes.css
index 93de86c108..f219ea084b 100644
--- a/apps/client/src/widgets/dialogs/note_attributes.css
+++ b/apps/client/src/widgets/dialogs/note_attributes.css
@@ -128,6 +128,31 @@ body.mobile .modal.note-attributes-modal {
}
}
+ /* A menu item wraps its contents in a span, so the row's flex `gap` does not reach them. */
+ .attribute-row :is(.attribute-owner, .attribute-value) {
+ margin-inline-start: 6px;
+ }
+
+ /* The help button beside the title in every card, whether or not an add button follows it. */
+ .options-section-header {
+ justify-content: flex-start;
+ gap: 4px;
+ }
+
+ .attribute-toolbar {
+ --icon-button-size: 36px;
+
+ height: 48px;
+ border-bottom: 0;
+ background-color: var(--modal-background-color);
+
+ .form-checkbox label,
+ .attribute-selection-count,
+ .attribute-toolbar-read-only {
+ font-size: 1em;
+ }
+ }
+
/* 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
diff --git a/apps/client/src/widgets/sidebar/AttributeList.tsx b/apps/client/src/widgets/sidebar/AttributeList.tsx
index cca832eb3e..c511e1b9a8 100644
--- a/apps/client/src/widgets/sidebar/AttributeList.tsx
+++ b/apps/client/src/widgets/sidebar/AttributeList.tsx
@@ -1245,7 +1245,6 @@ function AttributeRow({ attribute, note, active, valueEditor, isSystem, selected
icon={kindIcon}
// The badge hangs off the icon's own corner here, there being no wrapper to hang it on.
iconClassName={clsx("attribute-kind", markerClass)}
- title={kindTooltip}
// A picked-out row takes the mark a menu item is checked with, in the slot its kind
// icon holds — the same trade the checkbox makes for itself on a desktop below.
checked={selected}