Skip to content

Commit 46a868b

Browse files
authored
Update update-contributors.js
1 parent 7dca4a1 commit 46a868b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/scripts/update-contributors.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,22 @@ function fetchContributors() {
2929

3030
function buildHTML(contributors) {
3131
return (
32-
'\n<p>\n' +
32+
'\n<p align="">\n' +
3333
contributors
3434
.map(c => {
35-
const avatar = `<a href="${c.html_url}" title="${c.login}"><img src="${c.avatar_url}&s=100" style="border-radius:50%; width:60px; height:60px; object-fit:cover; margin:5px;" alt="${c.login}"/></a>`;
35+
const avatar = `<a href="${c.html_url}" title="${c.login}" style="display:inline-block;width:60px;height:60px;margin:5px;">
36+
<span style="
37+
display:inline-block;
38+
width:60px;
39+
height:60px;
40+
border-radius:50%;
41+
background-image:url('${c.avatar_url}&s=100');
42+
background-size:cover;
43+
background-position:center;
44+
background-repeat:no-repeat;
45+
display:inline-block;
46+
"></span>
47+
</a>`;
3648
return avatar;
3749
})
3850
.join('\n') +

0 commit comments

Comments
 (0)