Skip to content

Build your personal knowledge base with Trilium Notes

feat(note_info): improve layout slightly

Elian Doran84cda001aa59
diff --git a/apps/client/src/widgets/BreadcrumbBadges.css b/apps/client/src/widgets/BreadcrumbBadges.css
index e3cd4f750c..919cb6353e 100644
--- a/apps/client/src/widgets/BreadcrumbBadges.css
+++ b/apps/client/src/widgets/BreadcrumbBadges.css
@@ -70,10 +70,27 @@
}
.dropdown-note-info-badge {
- ul {
+ .dropdown-menu.show ul {
list-style-type: none;
padding: 0.5em;
margin: 0;
+ display: table;
+
+ li {
+ display: table-row;
+
+ > strong {
+ display: table-cell;
+ padding: 0.2em 0;
+ }
+
+ > span {
+ display: table-cell;
+ user-select: text;
+ padding-left: 2em;
+ }
+ }
}
}
+
}
diff --git a/apps/client/src/widgets/BreadcrumbBadges.tsx b/apps/client/src/widgets/BreadcrumbBadges.tsx
index 610796c7e3..1d360cbc51 100644
--- a/apps/client/src/widgets/BreadcrumbBadges.tsx
+++ b/apps/client/src/widgets/BreadcrumbBadges.tsx
@@ -48,7 +48,7 @@ function NoteInfoBadge() {
function NoteInfoValue({ text, value }: { text: string; value: ComponentChildren }) {
return (
<li>
- <strong>{text}</strong>{": "}
+ <strong>{text}{": "}</strong>
<span>{value}</span>
</li>
);