Skip to content

Commit

Permalink
Truncate branch name on prebuilds page
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsiolis authored and roboquat committed Nov 22, 2022
1 parent 89104af commit 162215b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions components/dashboard/src/projects/Prebuilds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,18 @@ export default function (props: { project?: Project; isAdminDashboard?: boolean
</div>
</ItemField>
<ItemField className="flex w-3/12">
<a href={p.info.changeUrl} className="cursor-pointer">
<div className="flex space-x-2 truncate">
<span
className="font-medium text-gray-500 dark:text-gray-50 truncate"
title={p.info.branch}
>
{p.info.branch}
</span>
</div>
</a>
<div className="truncate">
<a href={p.info.changeUrl} className="cursor-pointer">
<div className="flex space-x-2 truncate">
<span
className="font-medium text-gray-500 dark:text-gray-50 truncate"
title={p.info.branch}
>
{p.info.branch}
</span>
</div>
</a>
</div>
<span className="flex-grow" />
</ItemField>
</Item>
Expand Down

0 comments on commit 162215b

Please sign in to comment.