File tree Expand file tree Collapse file tree 1 file changed +20
-33
lines changed
src/components/StatsBoxGrid Expand file tree Collapse file tree 1 file changed +20
-33
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ export const GridItem = ({ metric }: GridItemProps) => {
121
121
height = { 80 }
122
122
flexDirection = "column"
123
123
justifyContent = "space-between"
124
- alignItems = "flex-start"
125
124
borderX = { {
126
125
base : "0px solid #000000" ,
127
126
lg : "1px solid" ,
@@ -146,40 +145,28 @@ export const GridItem = ({ metric }: GridItemProps) => {
146
145
< OldText > { description } </ OldText >
147
146
</ Box >
148
147
{ hasData && (
149
- < >
150
- < Box
151
- position = "absolute"
152
- insetInlineStart = { 0 }
153
- bottom = { 0 }
154
- width = "100%"
155
- height = "65%"
156
- >
157
- { chart }
158
- </ Box >
159
- < Box
160
- position = "absolute"
161
- bottom = "20px"
162
- fontFamily = "monospace"
163
- insetInlineEnd = "20px"
164
- >
148
+ < Box position = "absolute" insetInline = "0" bottom = { 0 } height = "65%" >
149
+ { chart }
150
+ </ Box >
151
+ ) }
152
+ < Flex justifyContent = "space-between" >
153
+ < Box
154
+ fontSize = { { base : "max(8.8vw, 48px)" , lg : "min(4.4vw, 4rem)" } }
155
+ fontWeight = { 600 }
156
+ color = "text"
157
+ flexWrap = "wrap"
158
+ textOverflow = "ellipsis"
159
+ lineHeight = "1.6rem"
160
+ mb = "2"
161
+ >
162
+ { value }
163
+ </ Box >
164
+ { hasData && (
165
+ < Box fontFamily = "monospace" me = "-1" mb = "-1" >
165
166
{ buttonContainer }
166
167
</ Box >
167
- </ >
168
- ) }
169
- < Box
170
- position = "absolute"
171
- bottom = "8%"
172
- fontSize = { { base : "max(8.8vw, 48px)" , lg : "min(4.4vw, 4rem)" } }
173
- fontWeight = { 600 }
174
- marginTop = { 0 }
175
- marginBottom = { 4 }
176
- color = "text"
177
- flexWrap = "wrap"
178
- textOverflow = "ellipsis"
179
- lineHeight = "1.6rem"
180
- >
181
- { value }
182
- </ Box >
168
+ ) }
169
+ </ Flex >
183
170
</ Flex >
184
171
)
185
172
}
You can’t perform that action at this time.
0 commit comments