Skip to content

Commit

Permalink
Fix broken layout if pr title is too long (#94)
Browse files Browse the repository at this point in the history
* style: changed total contributions pill padding

* feat: add tooltip to total contributions pill

* style: fix pr title right alignement

* style: fix pr title broken layout if too long

---------

Co-authored-by: sa.cux <[email protected]>
  • Loading branch information
theflucs and fuoridallarete authored Jan 21, 2024
1 parent 3540e5c commit 8b0aef0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/RepositoryContributionsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ export const RepositoryContributionsCard = ({
{repository.owner.login}/{repository.name}
</Link>
</div>
<div className="rounded p-1 outline outline-1">{totalCount}</div>
<div className="tooltip tooltip-left" data-tip="Total contributions">
<div className="rounded outline outline-1 cursor-default px-2">
{totalCount}
</div>
</div>
</h2>
<div className="max-h-[22rem] hide-scrollbar overflow-auto flex flex-col px-1 gap-1">
<div className="max-h-[22rem] hide-scrollbar overflow-auto flex flex-col gap-1">
{nodes?.map(({ pullRequest: { state, title, id, url } }: any) => (
<div key={id} className="flex items-center justify-between gap-2">
<a href={url} target="_blank" className="flex-shrink-0">
<a href={url} target="_blank" className="truncate" title={title}>
{title}
</a>
<span
Expand Down

0 comments on commit 8b0aef0

Please sign in to comment.