File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 15
15
16
16
<h3 >Contributors</h3 >
17
17
18
- <div style = " display : grid ; grid-template-columns : repeat ( 5 , minmax ( 0 , 1 fr )); gap : 10 px ; align-items : center ; padding : 20 px ; " >
18
+ <div class = " contributors-grid " >
19
19
@if (! _contributors .Any ())
20
20
{
21
21
<h4 style =" color : red " >Error fetching contributors from the GitHub API </h4 >
Original file line number Diff line number Diff line change 63
63
justify-content : center;
64
64
align-items : center;
65
65
height : 100% ; /* Adjust this value according to your needs */
66
+ }
67
+
68
+ .contributors-grid {
69
+ display : grid;
70
+ grid-template-columns : repeat (auto-fit, minmax (200px , 1fr ));
71
+ gap : 10px ;
72
+ align-items : center;
73
+ padding : 20px ;
74
+ }
75
+
76
+ @media only screen and (max-width : 300px ) {
77
+ .contributors-grid {
78
+ display : grid;
79
+ grid-template-columns : repeat (1 , minmax (0 , 1fr ));
80
+ /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
81
+ gap : 10px ;
82
+ align-items : center;
83
+ padding : 20px ;
84
+ }
66
85
}
You can’t perform that action at this time.
0 commit comments