Make timestamps --color-foreground

This commit is contained in:
Sebastian Martinez
2024-01-19 16:43:10 +01:00
parent 8f126d3903
commit ff593e6567
6 changed files with 7 additions and 21 deletions
+1 -3
View File
@@ -389,9 +389,7 @@
{utils.formatObjectId(revisionId)}
</span>
{/if}
<span style:color="var(--color-foreground-dim)">
{utils.formatTimestamp(revisionTimestamp)}
</span>
{utils.formatTimestamp(revisionTimestamp)}
<div style="display: flex; gap: 0.5rem; margin-left: auto;">
{#if canEdit(revisionAuthor.id) && editRevision && revisionState === "read"}
<IconButton
@@ -40,9 +40,7 @@
</div>
committed
<slot />
<span style:color="var(--color-foreground-dim)">
{formatTimestamp(header.committer.time)}
</span>
{formatTimestamp(header.committer.time)}
{:else}
<div class="person">
<img class="avatar" alt="avatar" src={gravatarURL(header.author.email)} />
@@ -58,8 +56,6 @@
</div>
committed
<slot />
<span style:color="var(--color-foreground-dim)">
{formatTimestamp(header.committer.time)}
</span>
{formatTimestamp(header.committer.time)}
{/if}
</span>
+1 -3
View File
@@ -565,9 +565,7 @@
<NodeId nodeId={issue.author.id} alias={issue.author.alias} />
opened
<span class="global-oid">{utils.formatObjectId(issue.id)}</span>
<span style:color="var(--color-foreground-dim)">
{utils.formatTimestamp(issue.discussion[0].timestamp)}
</span>
{utils.formatTimestamp(issue.discussion[0].timestamp)}
{#if lastDescriptionEdit}
<div class="author-metadata">•</div>
<div
+1 -3
View File
@@ -128,9 +128,7 @@
<NodeId nodeId={issue.author.id} alias={issue.author.alias} />
opened
<span class="global-oid">{formatObjectId(issue.id)}</span>
<span style:color="var(--color-foreground-dim)">
{formatTimestamp(issue.discussion[0].timestamp)}
</span>
{formatTimestamp(issue.discussion[0].timestamp)}
</div>
</div>
<div class="right">
+1 -3
View File
@@ -736,9 +736,7 @@
<NodeId nodeId={patch.author.id} alias={patch.author.alias} />
opened
<span class="global-oid">{utils.formatObjectId(patch.id)}</span>
<span style:color="var(--color-foreground-dim)">
{utils.formatTimestamp(patch.revisions[0].timestamp)}
</span>
{utils.formatTimestamp(patch.revisions[0].timestamp)}
</div>
</CobHeader>
+1 -3
View File
@@ -161,9 +161,7 @@
{formatObjectId(patch.revisions[patch.revisions.length - 1].id)}
</span>
{/if}
<span style:color="var(--color-foreground-dim)">
{formatTimestamp(latestRevision.timestamp)}
</span>
{formatTimestamp(latestRevision.timestamp)}
</span>
</div>
</div>