Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
6ec98879
Unverified
Commit
6ec98879
authored
May 24, 2024
by
tom goriunov
Committed by
GitHub
May 24, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1947 from blockscout/fix-chart-height
Fix different heights of components with a chart
parents
e2705c7e
f3904581
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ChainIndicators.tsx
ui/home/indicators/ChainIndicators.tsx
+4
-4
No files found.
ui/home/indicators/ChainIndicators.tsx
View file @
6ec98879
import
{
Box
,
Flex
,
Skeleton
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Skeleton
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
...
@@ -76,7 +76,7 @@ const ChainIndicators = () => {
...
@@ -76,7 +76,7 @@ const ChainIndicators = () => {
const
diffColor
=
diff
>=
0
?
'
green.500
'
:
'
red.500
'
;
const
diffColor
=
diff
>=
0
?
'
green.500
'
:
'
red.500
'
;
return
(
return
(
<
Skeleton
isLoaded=
{
!
statsQueryResult
.
isPlaceholderData
}
display=
"flex"
alignItems=
"center"
color=
{
diffColor
}
m
t
=
{
2
}
>
<
Skeleton
isLoaded=
{
!
statsQueryResult
.
isPlaceholderData
}
display=
"flex"
alignItems=
"center"
color=
{
diffColor
}
m
l
=
{
2
}
>
<
IconSvg
name=
"up"
boxSize=
{
5
}
mr=
{
1
}
transform=
{
diff
<
0
?
'
rotate(180deg)
'
:
'
rotate(0)
'
}
/>
<
IconSvg
name=
"up"
boxSize=
{
5
}
mr=
{
1
}
transform=
{
diff
<
0
?
'
rotate(180deg)
'
:
'
rotate(0)
'
}
/>
<
Text
color=
{
diffColor
}
fontWeight=
{
600
}
>
{
diff
}
%
</
Text
>
<
Text
color=
{
diffColor
}
fontWeight=
{
600
}
>
{
diff
}
%
</
Text
>
</
Skeleton
>
</
Skeleton
>
...
@@ -101,10 +101,10 @@ const ChainIndicators = () => {
...
@@ -101,10 +101,10 @@ const ChainIndicators = () => {
<
Text
fontWeight=
{
500
}
fontFamily=
"heading"
fontSize=
"lg"
>
{
indicator
?.
title
}
</
Text
>
<
Text
fontWeight=
{
500
}
fontFamily=
"heading"
fontSize=
"lg"
>
{
indicator
?.
title
}
</
Text
>
{
indicator
?.
hint
&&
<
Hint
label=
{
indicator
.
hint
}
ml=
{
1
}
/>
}
{
indicator
?.
hint
&&
<
Hint
label=
{
indicator
.
hint
}
ml=
{
1
}
/>
}
</
Flex
>
</
Flex
>
<
Box
mb=
{
4
}
>
<
Flex
mb=
{
4
}
alignItems=
"end"
>
{
valueTitle
}
{
valueTitle
}
{
valueDiff
}
{
valueDiff
}
</
Bo
x
>
</
Fle
x
>
<
ChainIndicatorChartContainer
{
...
queryResult
}
/>
<
ChainIndicatorChartContainer
{
...
queryResult
}
/>
</
Flex
>
</
Flex
>
{
indicators
.
length
>
1
&&
(
{
indicators
.
length
>
1
&&
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment