Skip to content

Commit 66f73b0

Browse files
committed
Add a last-edit crumb.
1 parent 98d7c3c commit 66f73b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Image,
1010
Link,
1111
Search,
12+
Clock,
1213
TextSelect,
1314
Trash2,
1415
} from 'lucide-react'
@@ -157,7 +158,7 @@ const timeAgo = (date: Date | number) => {
157158
]
158159
for (const i of intervals) {
159160
const v = Math.floor(seconds / i.secs)
160-
if (v >= 1) return `${v}${i.label} ago`
161+
if (v >= 1) return `${v}${i.label}`
161162
}
162163
return 'just now'
163164
}
@@ -515,6 +516,10 @@ function commentRow(
515516
<TextSelect className='w-3 h-3' />
516517
{draft.charCount}
517518
</span>
519+
<span className='inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs bg-gray-50 text-gray-700'>
520+
<Clock className='w-3 h-3' />
521+
{timeAgo(draft.lastEdit)}
522+
</span>
518523
</div>
519524
</div>
520525

0 commit comments

Comments
 (0)