Skip to content

Commit

Permalink
tweak contributors list component
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Sep 13, 2024
1 parent dbf7df9 commit 0c509fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/Contributors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default function Contributors() {
{users.map((user: User) => {
return (
<li key={user.login}>
<a href={user.url} rel="nofollow noopener">
<img src={user.avatar} alt={user.name} />
<a href={user.url} rel="nofollow noopener" title={user.name}>
<img src={user.avatar} alt={`Avatar of ${user.name}`} />
</a>
</li>
);
Expand Down
7 changes: 4 additions & 3 deletions docs/src/components/Contributors/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
}

.contributors {
--avatar-size: 52px;
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 5px;
margin: 2em auto;
width: calc(32px * 15);
width: calc(var(--avatar-size) * 15);
}

.contributors li {
Expand All @@ -20,8 +21,8 @@
}

.contributors img {
width: 32px;
height: 32px;
width: var(--avatar-size);
height: var(--avatar-size);
}

.contributors a, .contributors img {
Expand Down

0 comments on commit 0c509fd

Please sign in to comment.