@@ -4,7 +4,7 @@ import { reverse, sortBy } from "lodash"
4
4
5
5
// Components
6
6
import Emoji from "./Emoji"
7
- import { Option , OptionContainer , OptionText } from "./SharedStyledComponents"
7
+ import { Option , OptionText } from "./SharedStyledComponents"
8
8
import Translation from "./Translation"
9
9
import { Box , Flex , Img , Text , useColorModeValue } from "@chakra-ui/react"
10
10
@@ -46,7 +46,14 @@ const TranslationLeaderboard: React.FC<IProps> = ({
46
46
47
47
return (
48
48
< Box >
49
- < OptionContainer >
49
+ < Flex
50
+ justifyContent = "center"
51
+ py = { 0 }
52
+ px = { 8 }
53
+ mb = { 8 }
54
+ flexDirection = { { base : "column" , lg : "inherit" } }
55
+ w = "full"
56
+ >
50
57
< Option
51
58
onClick = { ( ) => updateDateRangeType ( "monthData" ) }
52
59
isActive = { dateRangeType === "monthData" }
@@ -71,7 +78,7 @@ const TranslationLeaderboard: React.FC<IProps> = ({
71
78
< Translation id = "page-contributing-translation-program-acknowledgements-translation-leaderboard-all-time-view" />
72
79
</ OptionText >
73
80
</ Option >
74
- </ OptionContainer >
81
+ </ Flex >
75
82
< Box bg = "background" boxShadow = { tableBoxShadow } w = "full" mb = { 8 } >
76
83
< Flex
77
84
bg = "grayBackground"
@@ -193,7 +200,14 @@ const TranslationLeaderboard: React.FC<IProps> = ({
193
200
)
194
201
} ) }
195
202
</ Box >
196
- < OptionContainer >
203
+ < Flex
204
+ justifyContent = "center"
205
+ py = { 0 }
206
+ px = { 8 }
207
+ mb = { 8 }
208
+ flexDirection = { { base : "column" , lg : "inherit" } }
209
+ w = "full"
210
+ >
197
211
< Option onClick = { filterAmount === 10 ? showMore : showLess } >
198
212
< OptionText fontSize = { "18px" } >
199
213
< Translation
@@ -205,7 +219,7 @@ const TranslationLeaderboard: React.FC<IProps> = ({
205
219
/>
206
220
</ OptionText >
207
221
</ Option >
208
- </ OptionContainer >
222
+ </ Flex >
209
223
</ Box >
210
224
)
211
225
}
0 commit comments