Skip to content

Commit 7064e05

Browse files
jankeromnesgtsiolis
andcommitted
[projects] Fix Project card bottom layout
Co-authored-by: George Tsiolis <[email protected]>
1 parent 1d7d20c commit 7064e05

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

components/dashboard/src/projects/Projects.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,14 @@ export default function () {
158158
</div>
159159
<div className="h-10 px-4 border rounded-b-xl dark:border-gray-800 bg-gray-100 border-gray-100 dark:bg-gray-800">
160160
{lastPrebuilds.get(p.id)
161-
? (<div className="flex flex-row h-full text-sm justify-between">
162-
<Link to={`/${teamOrUserSlug}/${p.name}/${lastPrebuilds.get(p.id)?.info?.id}`} className="flex my-auto items-center group space-x-2">
161+
? (<div className="flex flex-row h-full text-sm space-x-4">
162+
<Link to={`/${teamOrUserSlug}/${p.name}/${lastPrebuilds.get(p.id)?.info?.id}`} className="flex-grow flex items-center group space-x-2 truncate">
163163
{prebuildStatusIcon(lastPrebuilds.get(p.id))}
164-
<div className="font-semibold text-gray-500 dark:text-gray-400 truncate w-24" title={lastPrebuilds.get(p.id)?.info?.branch}>{lastPrebuilds.get(p.id)?.info?.branch}</div>
165-
<span className="mx-1 text-gray-400 dark:text-gray-600">·</span>
166-
<div className="text-gray-400 dark:text-gray-500 flex-grow hover:text-gray-800 dark:hover:text-gray-300">{moment(lastPrebuilds.get(p.id)?.info?.startedAt).fromNow()}</div>
167-
</Link>
168-
<Link to={`/${teamOrUserSlug}/${p.name}/prebuilds`} className="my-auto group">
169-
<div className="flex my-auto text-gray-400 flex-grow text-right group-hover:text-gray-600 dark:hover:text-gray-300">View All &rarr;</div>
164+
<div className="font-semibold text-gray-500 dark:text-gray-400 truncate" title={lastPrebuilds.get(p.id)?.info?.branch}>{lastPrebuilds.get(p.id)?.info?.branch}</div>
165+
<span className="flex-shrink-0 mx-1 text-gray-400 dark:text-gray-600">·</span>
166+
<div className="flex-shrink-0 text-gray-400 dark:text-gray-500 group-hover:text-gray-800 dark:group-hover:text-gray-300">{moment(lastPrebuilds.get(p.id)?.info?.startedAt).fromNow()}</div>
170167
</Link>
168+
<Link to={`/${teamOrUserSlug}/${p.name}/prebuilds`} className="flex-shrink-0 flex items-center text-gray-400 hover:text-gray-600 dark:hover:text-gray-300">View All &rarr;</Link>
171169
</div>)
172170
: (<div className="flex h-full text-md">
173171
<p className="my-auto ">No recent prebuilds</p>

0 commit comments

Comments
 (0)