fix(projects): add translation and fix minor details in Projects create modal

This commit is contained in:
2026-03-16 16:10:19 +08:00
parent 501e6c7ed2
commit 99257ef70f
6 changed files with 177 additions and 56 deletions

View File

@@ -161,8 +161,15 @@ export const Projects: React.FC = () => {
</CardTitle>
</div>
<p className="text-sm text-slate-500 dark:text-slate-400 line-clamp-1">
{project.client ? `${t.projects?.client || "Client"}: ${project.client.name}` : t.projects?.noDescription || 'No description'}
{project.client ? `${t.projects?.client || "Client"}: ${project.client.name}` : t.projects?.noClient || 'No client'}
</p>
{project.description && (
<p className="text-sm text-slate-600 dark:text-slate-300 mt-2 line-clamp-2">
{project.description}
</p>
)}
</div>
<div className="flex items-center gap-2 shrink-0">