display extension still when space for filename is not enough

This commit is contained in:
myl7
2022-02-10 23:22:40 +08:00
parent 601ae3ce8b
commit 4e490a007c
3 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import { getBaseUrl } from '../utils/getBaseUrl'
import { humanFileSize, formatModifiedDateTime } from '../utils/fileDetails'
import { getReadablePath } from '../utils/getReadablePath'
import { Downloading, Checkbox, formatChildName, ChildIcon } from './FileListing'
import { Downloading, Checkbox, ChildIcon, ChildName } from './FileListing'
const FileListItem: FC<{ fileContent: OdFolderChildren }> = ({ fileContent: c }) => {
return (
@@ -19,7 +19,7 @@ const FileListItem: FC<{ fileContent: OdFolderChildren }> = ({ fileContent: c })
<div className="w-5 flex-shrink-0 text-center">
<ChildIcon child={c} />
</div>
<div className="truncate">{formatChildName(c.name)}</div>
<ChildName name={c.name} />
</div>
<div className="col-span-3 hidden flex-shrink-0 font-mono text-sm text-gray-700 dark:text-gray-500 md:block">
{formatModifiedDateTime(c.lastModifiedDateTime)}