File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,10 +29,22 @@ function fetchContributors() {
2929
3030function 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' ) +
You can’t perform that action at this time.
0 commit comments