fix: description truncating after 1 line

This commit is contained in:
LAKHAN BAHETI 2023-11-14 17:13:57 +05:30
parent 442bbe41ac
commit 09a6039790

View File

@ -60,13 +60,13 @@ export const ProjectViewListItem: React.FC<Props> = observer((props) => {
<Link href={`/${workspaceSlug}/projects/${projectId}/views/${view.id}`}> <Link href={`/${workspaceSlug}/projects/${projectId}/views/${view.id}`}>
<a className="flex items-center justify-between relative rounded p-4 w-full"> <a className="flex items-center justify-between relative rounded p-4 w-full">
<div className="flex items-center justify-between w-full"> <div className="flex items-center justify-between w-full">
<div className="flex items-center gap-4 truncate"> <div className="flex items-center gap-4 overflow-auto">
<div className="grid place-items-center flex-shrink-0 h-10 w-10 rounded bg-custom-background-90 group-hover:bg-custom-background-100"> <div className="grid place-items-center flex-shrink-0 h-10 w-10 rounded bg-custom-background-90 group-hover:bg-custom-background-100">
<PhotoFilterIcon className="h-3.5 w-3.5" /> <PhotoFilterIcon className="h-3.5 w-3.5" />
</div> </div>
<div className="flex flex-col truncate"> <div className="flex flex-col overflow-auto">
<p className="text-sm leading-4 font-medium break-all truncate">{view.name}</p> <p className="text-sm leading-4 font-medium break-all truncate">{view.name}</p>
{view?.description && <p className="text-xs text-custom-text-200 break-all truncate">{view.description}</p>} {view?.description && <p className="text-xs text-custom-text-200 break-all">{view.description}</p>}
</div> </div>
</div> </div>
<div className="ml-2 flex flex-shrink-0"> <div className="ml-2 flex flex-shrink-0">