@@ -36,6 +36,10 @@ const getContributorLevel = (contributions: number) => {
36
36
return " bronze" ;
37
37
};
38
38
39
+ const filteredContributors = [
40
+ 49699333 , // Dependabot
41
+ ];
42
+
39
43
const headers: HeadersInit = {};
40
44
if (import .meta .env .GITHUB_TOKEN ) {
41
45
headers .Authorization = import .meta .env .GITHUB_TOKEN ;
@@ -99,25 +103,31 @@ if (!contributors) {
99
103
</p >
100
104
<div class =" flex" >
101
105
{
102
- contributors .map ((user ) => (
103
- <div
104
- class :list = { [
105
- " contributor" ,
106
- getContributorLevel (user .contributions ),
107
- ]}
108
- >
109
- <a href = { user .html_url } rel = " noopener nofollow" target = " _blank" >
110
- <img src = { user .avatar_url } />
111
- </a >
112
- <Tooltip
113
- content = { user .login }
114
- placement = " bottom"
115
- class = " username"
106
+ contributors
107
+ .filter ((user ) => ! filteredContributors .includes (user .id ))
108
+ .map ((user ) => (
109
+ <div
110
+ class :list = { [
111
+ " contributor" ,
112
+ getContributorLevel (user .contributions ),
113
+ ]}
116
114
>
117
- <Fragment >{ user .login } </Fragment >
118
- </Tooltip >
119
- </div >
120
- ))
115
+ <a
116
+ href = { user .html_url }
117
+ rel = " noopener nofollow"
118
+ target = " _blank"
119
+ >
120
+ <img src = { user .avatar_url } />
121
+ </a >
122
+ <Tooltip
123
+ content = { user .login }
124
+ placement = " bottom"
125
+ class = " username"
126
+ >
127
+ <div >{ user .login } </div >
128
+ </Tooltip >
129
+ </div >
130
+ ))
121
131
}
122
132
</div >
123
133
</section >
@@ -200,18 +210,15 @@ if (!contributors) {
200
210
}
201
211
202
212
div.contributor {
203
- width: 100%;
204
213
height: auto;
205
- position: relative;
206
- width: 5em;
214
+ width: 5.5em;
207
215
208
216
a,
209
217
img {
210
218
display: block;
211
219
aspect-ratio: 1;
212
220
width: 100%;
213
221
border-radius: 99em;
214
- border-width: 0.2em;
215
222
&:focus {
216
223
outline: var(--tier-color) solid 0.3em;
217
224
}
@@ -220,6 +227,7 @@ if (!contributors) {
220
227
border-style: solid;
221
228
box-sizing: border-box;
222
229
box-shadow: var(--tier-color) 0px 0px 10px 2px;
230
+ border-width: 0.2em;
223
231
border-color: var(--tier-color);
224
232
position: relative;
225
233
}
@@ -237,14 +245,18 @@ if (!contributors) {
237
245
--tier-color: #b46300;
238
246
}
239
247
240
- span.username {
248
+ :global(span.username.tooltip) {
249
+ margin-top: 0.2em;
241
250
font-size: 0.9em;
242
251
color: white;
243
252
display: block;
244
- text-align: center;
245
- width: 100%;
246
- text-overflow: ellipsis;
247
- overflow: hidden;
253
+
254
+ & > div {
255
+ font-weight: 300;
256
+ text-align: center;
257
+ text-overflow: ellipsis;
258
+ overflow: hidden;
259
+ }
248
260
}
249
261
}
250
262
}
0 commit comments