diff --git a/apps/client/src/stylesheets/theme-next/ribbon.css b/apps/client/src/stylesheets/theme-next/ribbon.css index dc1465d17..3718602cf 100644 --- a/apps/client/src/stylesheets/theme-next/ribbon.css +++ b/apps/client/src/stylesheets/theme-next/ribbon.css @@ -42,7 +42,7 @@ div.promoted-attributes-container { */ /* The property label */ -.note-info-widget-table th, +.note-info-item > span:first-child, .file-properties-widget .file-table th, .image-properties > div:first-child > span > strong { opacity: 0.65; @@ -50,7 +50,6 @@ div.promoted-attributes-container { vertical-align: top; } -.note-info-widget-table td, .file-properties-widget .file-table td { vertical-align: top; } diff --git a/apps/client/src/widgets/ribbon/NoteInfoTab.tsx b/apps/client/src/widgets/ribbon/NoteInfoTab.tsx index 2e670d51d..2fb9daa80 100644 --- a/apps/client/src/widgets/ribbon/NoteInfoTab.tsx +++ b/apps/client/src/widgets/ribbon/NoteInfoTab.tsx @@ -36,57 +36,58 @@ export default function NoteInfoTab({ note }: TabContext) { return (
{note && ( - - - - - - - - - - + <> +
+ {t("note_info_widget.note_id")}: + {note.noteId} +
+
+ {t("note_info_widget.created")}: + {formatDateTime(metadata?.dateCreated)} +
+
+ {t("note_info_widget.modified")}: + {formatDateTime(metadata?.dateModified)} +
+
+ {t("note_info_widget.type")}: + + {note.type}{' '} + {note.mime && ({note.mime})} + +
+
+ {t("note_info_widget.note_size")}: + + {!isLoading && !noteSizeResponse && !subtreeSizeResponse && ( +
- - - - - - - -
{t("note_info_widget.note_id")}:{note.noteId}{t("note_info_widget.created")}:{formatDateTime(metadata?.dateCreated)}{t("note_info_widget.modified")}:{formatDateTime(metadata?.dateModified)}
{t("note_info_widget.type")}: - {note.type}{' '} - { note.mime && ({note.mime}) } - {t("note_info_widget.note_size")}: - {!isLoading && !noteSizeResponse && !subtreeSizeResponse && ( -
+ + {formatSize(noteSizeResponse?.noteSize)} + {" "} + {subtreeSizeResponse && subtreeSizeResponse.subTreeNoteCount > 1 && + {t("note_info_widget.subtree_size", { size: formatSize(subtreeSizeResponse.subTreeSize), count: subtreeSizeResponse.subTreeNoteCount })} + } + {isLoading && } + + +
+ )} ) diff --git a/apps/client/src/widgets/ribbon/style.css b/apps/client/src/widgets/ribbon/style.css index 16437d618..f47c6d662 100644 --- a/apps/client/src/widgets/ribbon/style.css +++ b/apps/client/src/widgets/ribbon/style.css @@ -160,17 +160,20 @@ /* #region Note info */ .note-info-widget { padding: 12px; + display: flex; + flex-wrap: wrap; + align-items: baseline; } -.note-info-widget-table { - max-width: 100%; - display: block; - overflow-x: auto; - white-space: nowrap; +.note-info-item { + display: flex; + align-items: baseline; + padding-inline-end: 15px; + padding-block: 5px; } -.note-info-widget-table td, .note-info-widget-table th { - padding: 5px; +.note-info-item > span:first-child { + padding-inline-end: 5px; } .note-info-mime { @@ -186,6 +189,10 @@ font-size: 0.8em; vertical-align: middle !important; } + +.note-info-widget .calculate-button { + padding: 0 10px; +} /* #endregion */ /* #region Similar Notes */