Skip to content

Commit eef1986

Browse files
committed
update issue grids
1 parent f8ebd54 commit eef1986

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

src/components/issue/Issue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Issue = ({ issue }: IssueProps) => {
2020
issue
2121
)
2222
return (
23-
<div className="w-96 flex flex-col p-6 rounded-lg shadow-lg hover:shadow-md bg-white dark:bg-dark-700">
23+
<div className="flex flex-col p-6 rounded-lg shadow-lg hover:shadow-md bg-white dark:bg-dark-700">
2424
<a href={data.url} target="_blank" rel="noopener noreferrer">
2525
<div className="flex flex-row">
2626
<img

src/components/issue/IssuesFromLastRepo.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,31 @@ const IssuesFromLastRepo = ({ user }: IssuesFromLastRepoProps) => {
6161
return (
6262
<div className="mt-10">
6363
<h3 className="font-bold text-gray-500 text-lg">Issues from last repo</h3>
64-
<div className="relative">
64+
<div className="flex">
6565
<div
66-
className=" flex overflow-x-auto space-x-4 no-scrollbar scroll-smooth"
66+
className="grid grid-rows-2 grid-flow-col gap-4 flex-1 overflow-x-auto no-scrollbar scroll-smooth"
6767
ref={scrollableElement}
6868
>
6969
{data.issuesFromLastRepo.edges.map(
7070
(issue) => issue && <Issue issue={issue.node} key={issue.node.id} />
7171
)}
7272
</div>
73-
<button
74-
type="button"
75-
className="absolute right-8 bottom-0 mr-4 mt-4"
76-
onClick={() => scrollHorizontally(scrollDirection.Left)}
77-
>
78-
<FaChevronRight className="b-0 w-6 h-6 rotate-180 dark:text-gray-300 bg-gray-300 dark:bg-dark-900 rounded-full p-1 font-bold" />
79-
</button>
80-
<button
81-
type="button"
82-
className="absolute right-0 bottom-0 mr-4 mt-4"
83-
onClick={() => handleScrollRight()}
84-
>
85-
<FaChevronRight className="b-0 w-6 h-6 dark:text-gray-300 bg-gray-300 dark:bg-dark-900 rounded-full p-1 font-bold" />
86-
</button>
73+
<div className="flex flex-col ml-2 h-full">
74+
<button
75+
type="button"
76+
className=" right-8 bottom-0 mr-4 mt-4"
77+
onClick={() => scrollHorizontally(scrollDirection.Left)}
78+
>
79+
<FaChevronRight className="b-0 w-6 h-6 rotate-180 dark:text-gray-300 bg-gray-300 dark:bg-dark-900 rounded-full p-1 font-bold" />
80+
</button>
81+
<button
82+
type="button"
83+
className=" right-0 bottom-0 mr-4 mt-4"
84+
onClick={() => handleScrollRight()}
85+
>
86+
<FaChevronRight className="b-0 w-6 h-6 dark:text-gray-300 bg-gray-300 dark:bg-dark-900 rounded-full p-1 font-bold" />
87+
</button>
88+
</div>
8789
</div>
8890
<style jsx>
8991
{`

src/components/issue/IssuesFromRecentRepo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const IssuesFromRecentRepos = ({ user }: IssuesFromRecentReposProps) => {
4242
<h3 className="font-bold text-gray-500 text-lg">
4343
Issues from other recent repos
4444
</h3>
45-
<div className="grid grid-cols-2 xl:grid-cols-2 gap-4 mt-4">
45+
<div className="grid grid-cols-1 xl:grid-cols-1 gap-4 mt-4">
4646
{data.issuesFromOtherRecentRepos.edges.map(
4747
(issue) => issue && <Issue issue={issue.node} key={issue.node.id} />
4848
)}

src/components/issue/RelevantIssues.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const RelevantIssues = ({ user }: RelevantIssuesProps) => {
3838
return (
3939
<div className="mt-10">
4040
<h3 className="font-bold text-gray-500 text-lg">Explore New Issues</h3>
41-
<div className="grid grid-cols-2 xl:grid-cols-2 gap-4 mt-4">
41+
<div className="grid grid-cols-1 xl:grid-cols-1 gap-4 mt-4">
4242
{data.relevantIssues.edges.map(
4343
(issue) => issue && <Issue issue={issue.node} key={issue.node.id} />
4444
)}

0 commit comments

Comments
 (0)