Skip to content

Commit 60ae205

Browse files
committed
update width of issue cards in grid
1 parent c0b9f62 commit 60ae205

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/issue/Issue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Issue = ({ issue }: IssueProps) => {
2121
issue
2222
)
2323
return (
24-
<Card classes="w-96 flex flex-col p-6">
24+
<Card classes="w-full flex flex-col p-6">
2525
<a href={data.url} target="_blank" rel="noopener noreferrer">
2626
<div className="flex flex-row">
2727
<img

src/components/issue/IssuesFromLastRepo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const IssuesFromLastRepo = ({ user }: IssuesFromLastRepoProps) => {
1414
fragment IssuesFromLastRepo on User
1515
@refetchable(queryName: "IssuesFromLastRepo_Query")
1616
@argumentDefinitions(
17-
count: { type: "Int", defaultValue: 2 }
17+
count: { type: "Int", defaultValue: 4 }
1818
cursor: { type: "String" }
1919
) {
2020
issuesFromLastRepo(first: $count, after: $cursor)
@@ -45,7 +45,7 @@ const IssuesFromLastRepo = ({ user }: IssuesFromLastRepoProps) => {
4545

4646
const handleScrollRight = () => {
4747
if (hasNext) {
48-
loadNext(2)
48+
loadNext(4)
4949
}
5050
scrollHorizontally(scrollDirection.Right)
5151
}
@@ -63,7 +63,7 @@ const IssuesFromLastRepo = ({ user }: IssuesFromLastRepoProps) => {
6363
<h3 className="font-bold text-gray-500 text-lg">Issues from last repo</h3>
6464
<div className="flex">
6565
<div
66-
className="grid grid-rows-2 grid-flow-col gap-4 flex-1 overflow-x-auto no-scrollbar scroll-smooth"
66+
className="grid grid-rows-2 grid-flow-col gap-4 flex-1 overflow-x-auto auto-cols-max no-scrollbar scroll-smooth"
6767
ref={scrollableElement}
6868
>
6969
{data.issuesFromLastRepo.edges.map(

0 commit comments

Comments
 (0)