Skip to content

Commit 21c7bd8

Browse files
authored
Merge pull request #4678 from ethereum/translation-acknowledgement-bugs
Fix Translation Acknowledgement bugs
2 parents b20dff5 + bf375a4 commit 21c7bd8

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/components/TranslationLeaderboard.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ const Avatar = styled.img`
8383
}
8484
`
8585

86+
const NameContainer = styled.div`
87+
@media (max-width: ${(props) => props.theme.breakpoints.s}) {
88+
max-width: 100px;
89+
}
90+
`
91+
8692
const Width40 = styled.div`
8793
width: 40px;
8894
`
@@ -197,10 +203,15 @@ const TranslationLeaderboard = () => {
197203
)}
198204
<TextContainer>
199205
<Avatar src={user.avatarUrl} />
200-
<div>
206+
<NameContainer>
201207
{user.username}
202-
<Language>{languages[0]?.name || ""}</Language>
203-
</div>
208+
<Language>
209+
{languages
210+
.slice(0, 3)
211+
.map((language) => language.name)
212+
.join(", ")}
213+
</Language>
214+
</NameContainer>
204215
</TextContainer>
205216
</Flex>
206217
<WordsContainer>

src/pages/contributing/translation-program/contributors.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ const HorizontalUl = styled.ul`
3636
@media (max-width: ${(props) => props.theme.breakpoints.m}) {
3737
grid-template-columns: 1fr 1fr;
3838
}
39+
40+
@media (max-width: ${(props) => props.theme.breakpoints.s}) {
41+
grid-template-columns: 1fr;
42+
}
3943
`
4044

4145
const Contributors = ({ location }) => {

0 commit comments

Comments
 (0)