Skip to content

Commit

Permalink
clamp proposal title to one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricevladimir committed Apr 23, 2024
1 parent c844340 commit 9b25d04
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export const ProposalDataListItemStructure: React.FC<IProposalDataListItemStruct
<DataList.Item className={classNames('flex flex-col gap-y-4', className)} {...otherProps}>
<ProposalDataListItemStatus date={date} status={status} voted={voted} />
<div className="flex flex-col gap-y-1">
<p className="line-clamp-1 flex gap-x-3 text-lg leading-tight md:text-2xl">
{id && <span className="text-neutral-500">{id}</span>}
<span className="text-neutral-800">{title}</span>
<p className="flex gap-x-3 text-lg leading-tight md:text-2xl">
{id && <span className="shrink-0 text-neutral-500">{id}</span>}
<span className="line-clamp-1 text-neutral-800">{title}</span>
</p>
<p className="line-clamp-2 leading-normal text-neutral-500 md:text-lg">{summary}</p>
</div>
Expand Down

0 comments on commit 9b25d04

Please sign in to comment.