Skip to content

Commit 4d9cfe0

Browse files
committed
hover on relative timestamp
1 parent 30ea9f2 commit 4d9cfe0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rustytime",
33
"private": false,
4-
"version": "0.2.2",
4+
"version": "0.2.3",
55
"license": "AGPL-3.0",
66
"type": "module",
77
"repository": {

frontend/src/routes/projects/+page.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
type EnhancedProject = Project & {
1515
createdAtFormatted: string;
1616
lastUpdated: string | null;
17+
lastUpdatedExact: string | null;
1718
repoLabel: string | null;
1819
};
1920
@@ -63,6 +64,8 @@
6364
createdAtFormatted:
6465
isCreatedAtValid && createdDate ? creationDateFormatter.format(createdDate) : 'Unknown',
6566
lastUpdated: isUpdatedAtValid && updatedDate ? formatRelativeTime(updatedDate) : null,
67+
lastUpdatedExact:
68+
isUpdatedAtValid && updatedDate ? creationDateFormatter.format(updatedDate) : null,
6669
repoLabel: project.repo_url ? formatRepoLabel(project.repo_url) : null
6770
} satisfies EnhancedProject;
6871
});
@@ -146,7 +149,12 @@
146149
>{project.createdAtFormatted}</span
147150
>
148151
{#if project.lastUpdated}
149-
<span class="text-xs text-ctp-overlay1">Last updated {project.lastUpdated}</span>
152+
<span
153+
class="text-xs text-ctp-overlay1"
154+
title={project.lastUpdatedExact ?? undefined}
155+
>
156+
Last updated {project.lastUpdated}
157+
</span>
150158
{/if}
151159
</div>
152160
</div>

0 commit comments

Comments
 (0)