Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal list #73

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions frontend-next/components/ProposalList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const ProposalList = (props: any) => {
{proposals.map((proposal: any) => (
<Link href={`/proposal_info/${proposal.proposalCounter}`}>
<tr key={proposal.id}>
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
<td className="max-w-xs whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
<div className="flex items-center">
<div className="h-10 w-0 flex-shrink-0">
<img
Expand All @@ -111,21 +111,21 @@ export const ProposalList = (props: any) => {
alt=""
/>
</div>
<div className="ml-4">
<div className="font-medium text-gray-900">
{proposal.title}
<div className="max-w-xs ml-4 ">
<div className="font-medium text-gray-900 truncate overflow-hidden ">
{(proposal.title).slice(0,40)}
</div>
<div className="text-gray-500"></div>
</div>
</div>
</td>
<td className="whitespace-wrap px-3 py-4 text-sm text-gray-500">
<div className="text-gray-900 break-words">
{proposal.description} groupId
{(proposal.description).slice(0,90)} ...
</div>
<div className="text-gray-500">
{/* <div className="text-gray-500">
{proposal.groupId}
</div>
</div> */}
</td>
<td className="whitespace-wrap px-3 py-4 text-sm text-gray-500">
<span className="inline-flex rounded-full bg-green-100 px-2 text-xs font-semibold leading-5 text-green-800">
Expand Down