Skip to content

Build your personal knowledge base with Trilium Notes

feat(revisions): add full date in tooltip

Elian Doran81ea86100fdf
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index c1672f50c4..c5fd77ce5e 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -835,6 +835,7 @@ table.promoted-attributes-in-tooltip th {
text-align: start;
color: var(--main-text-color) !important;
max-width: 500px;
+ white-space: pre-line;
box-shadow: 10px 10px 93px -25px #aaaaaa;
}
diff --git a/apps/client/src/widgets/dialogs/revisions.tsx b/apps/client/src/widgets/dialogs/revisions.tsx
index e133b7f7da..ab0c280b2e 100644
--- a/apps/client/src/widgets/dialogs/revisions.tsx
+++ b/apps/client/src/widgets/dialogs/revisions.tsx
@@ -214,14 +214,14 @@ function RevisionsList({ revisions, onSelect, currentRevision }: { revisions: Re
key={item.revisionId}
value={item.revisionId}
icon={REVISION_SOURCE_ICONS[item.source ?? ""] ?? DEFAULT_REVISION_ICON}
- title={getRevisionSourceTitle(item.source)}
+ title={[getRevisionSourceTitle(item.source), item.dateCreated?.substring(0, 16)].filter(Boolean).join("\n")}
active={currentRevision && item.revisionId === currentRevision.revisionId}
>
<div>
<div className={clsx("revision-item-description", { fallback: !item.description })}>
{item.description || formatRevisionFallback(item.source)}
</div>
- <div className="revision-item-meta" title={item.dateCreated?.substring(0, 16)}>
+ <div className="revision-item-meta">
{item.dateCreated && dayjs(item.dateCreated).fromNow()}
{item.dateCreated && item.contentLength && " · "}
{item.contentLength && utils.formatSize(item.contentLength)}