feat: basic recent file browsing

This commit is contained in:
2025-10-28 20:26:12 +00:00
parent 7fe5184e81
commit a8c7a8f60b
9 changed files with 109 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
function MiddleTruncatedText({ children }: { children: string }) {
const LAST_PART_LENGTH = 3
const lastPart = children.slice(children.length - LAST_PART_LENGTH)
const firstPart = children.slice(0, children.length - LAST_PART_LENGTH)
return (
<p className="max-w-full flex">
<span className="flex-1 truncate">{firstPart}</span>
<span className="w-min">{lastPart}</span>
</p>
)
}
export { MiddleTruncatedText }