File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const Issue = ({ issue }: IssueProps) => {
20
20
issue
21
21
)
22
22
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" >
24
24
< a href = { data . url } target = "_blank" rel = "noopener noreferrer" >
25
25
< div className = "flex flex-row" >
26
26
< img
Original file line number Diff line number Diff line change @@ -61,29 +61,31 @@ const IssuesFromLastRepo = ({ user }: IssuesFromLastRepoProps) => {
61
61
return (
62
62
< div className = "mt-10" >
63
63
< h3 className = "font-bold text-gray-500 text-lg" > Issues from last repo</ h3 >
64
- < div className = "relative " >
64
+ < div className = "flex " >
65
65
< 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"
67
67
ref = { scrollableElement }
68
68
>
69
69
{ data . issuesFromLastRepo . edges . map (
70
70
( issue ) => issue && < Issue issue = { issue . node } key = { issue . node . id } />
71
71
) }
72
72
</ 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 >
87
89
</ div >
88
90
< style jsx >
89
91
{ `
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const IssuesFromRecentRepos = ({ user }: IssuesFromRecentReposProps) => {
42
42
< h3 className = "font-bold text-gray-500 text-lg" >
43
43
Issues from other recent repos
44
44
</ 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" >
46
46
{ data . issuesFromOtherRecentRepos . edges . map (
47
47
( issue ) => issue && < Issue issue = { issue . node } key = { issue . node . id } />
48
48
) }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const RelevantIssues = ({ user }: RelevantIssuesProps) => {
38
38
return (
39
39
< div className = "mt-10" >
40
40
< 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" >
42
42
{ data . relevantIssues . edges . map (
43
43
( issue ) => issue && < Issue issue = { issue . node } key = { issue . node . id } />
44
44
) }
You can’t perform that action at this time.
0 commit comments