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

fixed long description is breaking project listing ui #220

Merged
merged 2 commits into from
Nov 9, 2023
Merged
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
18 changes: 13 additions & 5 deletions renderer/src/components/Projects/ProjectRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,20 @@ const ProjectRow = ({
leaveTo="transform scale-95 opacity-0"
>
<Disclosure.Panel as="tr" key={project.name}>
<td className="px-6 py-4">
<div className="text-xxs uppercase font-regular text-gray-500 tracking-wider p-1">description</div>
<div aria-label="project-description-display" className="text-sm tracking-wide p-1">{project.description}</div>
<td aria-label="empty column" />
<td colSpan={2} className="px-6 py-4">
<div className="text-xxs uppercase font-regular text-gray-500 tracking-wider p-1">{t('label-description')}</div>
<div
title={project.description}
aria-label="project-description-display"
className="text-sm tracking-wide md:max-w-[200px] lg:max-w-[400px] xl:max-w-[550px] p-1 overflow-hidden truncate"
>
{project.description}

</div>
</td>
<td colSpan="3" className="px-5">
<div className="text-xxs uppercase font-regular text-gray-500 tracking-wider p-1">Project ID</div>
<td colSpan="2" className="px-5">
<div className="text-xxs uppercase font-regular text-gray-500 tracking-wider p-1">{t('label-project-id')}</div>
<div className="text-sm tracking-wide p-1">{project.id[0]}</div>
</td>
<td className="pl-5">
Expand Down
Loading