feat(revisions): add full date in tooltip

This commit is contained in:
Elian Doran
2026-04-18 13:52:19 +03:00
parent d086c8664b
commit 81ea86100f
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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)}