Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile/note_actions): integrate styling for note info

Elian Doranc7265017b331
diff --git a/apps/client/src/widgets/layout/StatusBar.css b/apps/client/src/widgets/layout/StatusBar.css
index 6418630dba..c1dad02671 100644
--- a/apps/client/src/widgets/layout/StatusBar.css
+++ b/apps/client/src/widgets/layout/StatusBar.css
@@ -58,33 +58,6 @@
.dropdown-note-info {
padding: 1em !important;
-
- ul {
- --row-block-margin: .2em;
-
- list-style-type: none;
- padding: 0;
- margin: 0;
- margin-top: calc(0px - var(--row-block-margin));
- margin-bottom: 12px;
- display: table;
-
- li {
- display: table-row;
-
- > strong {
- display: table-cell;
- padding: var(--row-block-margin) 0;
- opacity: .5;
- }
-
- > span {
- display: table-cell;
- user-select: text;
- padding-left: 2em;
- }
- }
- }
}
.dropdown-note-paths {
@@ -154,6 +127,35 @@
}
+body.experimental-feature-new-layout .note-info-content {
+ ul {
+ --row-block-margin: .2em;
+
+ list-style-type: none;
+ padding: 0;
+ margin: 0;
+ margin-top: calc(0px - var(--row-block-margin));
+ margin-bottom: 12px;
+ display: table;
+
+ li {
+ display: table-row;
+
+ > strong {
+ display: table-cell;
+ padding: var(--row-block-margin) 0;
+ opacity: .5;
+ }
+
+ > span {
+ display: table-cell;
+ user-select: text;
+ padding-left: 2em;
+ }
+ }
+ }
+}
+
.bottom-panel {
margin: 0 !important;
padding: 0;
diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsx
index c2b8b5f697..c608c8f203 100644
--- a/apps/client/src/widgets/layout/StatusBar.tsx
+++ b/apps/client/src/widgets/layout/StatusBar.tsx
@@ -251,7 +251,7 @@ export function NoteInfoContent({ note, setSimilarNotesShown, noteType, dropdown
const noteTypeMapping = useMemo(() => NOTE_TYPES.find(t => t.type === noteType), [ noteType ]);
return (
- <>
+ <div className="note-info-content">
<ul>
{originalFileName && <NoteInfoValue text={t("file_properties.original_file_name")} value={originalFileName} />}
<NoteInfoValue text={t("note_info_widget.created")} value={formatDateTime(metadata?.dateCreated)} />
@@ -269,7 +269,7 @@ export function NoteInfoContent({ note, setSimilarNotesShown, noteType, dropdown
setSimilarNotesShown(true);
}}
/>}
- </>
+ </div>
);
}