@@ -7,27 +7,7 @@ import { reverse, sortBy } from "lodash"
7
7
import Emoji from "./OldEmoji"
8
8
import { Option , OptionContainer , OptionText } from "./SharedStyledComponents"
9
9
import Translation from "./Translation"
10
- import { Box , Flex , useColorModeValue } from "@chakra-ui/react"
11
-
12
- const Avatar = styled . img `
13
- margin-right: 1rem;
14
- height: 40px;
15
- width: 40px;
16
- @media (max-width: ${ ( props ) => props . theme . breakpoints . s } ) {
17
- height: 30px;
18
- width: 30px;
19
- }
20
- border-radius: 50%;
21
- @media (max-width: ${ ( props ) => props . theme . breakpoints . xs } ) {
22
- display: none;
23
- }
24
- `
25
-
26
- const NameContainer = styled . div `
27
- @media (max-width: ${ ( props ) => props . theme . breakpoints . s } ) {
28
- max-width: 100px;
29
- }
30
- `
10
+ import { Box , Flex , Img , useColorModeValue } from "@chakra-ui/react"
31
11
32
12
const Width40 = styled . div `
33
13
width: 40px;
@@ -204,11 +184,18 @@ const TranslationLeaderboard: React.FC<IProps> = ({
204
184
mr = { 8 }
205
185
overflowWrap = "anywhere"
206
186
>
207
- < Avatar src = { user . avatarUrl } />
208
- < NameContainer >
187
+ < Img
188
+ mr = { 4 }
189
+ h = { { base : "30px" , sm : 10 } }
190
+ w = { { base : "30px" , sm : 10 } }
191
+ borderRadius = "50%"
192
+ display = { { base : "none" , sm : "block" } }
193
+ src = { user . avatarUrl }
194
+ />
195
+ < Box maxW = { { base : "100px" , sm : "none" } } >
209
196
{ user . username }
210
197
< Language > { sortedLanguages [ 0 ] . language . name } </ Language >
211
- </ NameContainer >
198
+ </ Box >
212
199
</ Flex >
213
200
</ Flex >
214
201
< Flex minW = "20%" flexDirection = "row" alignItems = "left" >
0 commit comments