feat: allow resource title mutiple line (#1370)

This commit is contained in:
CorrectRoadH 2023-03-17 20:20:20 +08:00 committed by GitHub
parent f1f9140afc
commit 4ee8cf08c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ const ResourceCard = ({ resource, handlecheckClick, handleUncheckClick }: Resour
<ResourceCover resource={resource} />
</div>
<div className="w-full flex flex-col justify-start items-center px-1 select-none">
<div className="w-full text-base overflow-x-auto whitespace-nowrap text-center text-ellipsis truncate">{resource.filename}</div>
<div className="w-full text-base text-center text-ellipsis overflow-hidden">{resource.filename}</div>
<div className="text-xs text-gray-400 text-center">{dayjs(resource.createdTs).locale("en").format("YYYY/MM/DD HH:mm:ss")}</div>
</div>
</div>