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

Fix broken layout if pr title is too long #94

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
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
Loading