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
73b95b5f
Commit
73b95b5f
authored
Oct 21, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blocks layout fix for mobile devices
parent
b4eaf446
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
BlocksListItem.tsx
ui/blocks/BlocksListItem.tsx
+10
-6
No files found.
ui/blocks/BlocksListItem.tsx
View file @
73b95b5f
...
@@ -55,7 +55,7 @@ const BlocksListItem = ({ data, isPending, enableTimeIncrement }: Props) => {
...
@@ -55,7 +55,7 @@ const BlocksListItem = ({ data, isPending, enableTimeIncrement }: Props) => {
</
Flex
>
</
Flex
>
<
Box
>
<
Box
>
<
Text
fontWeight=
{
500
}
>
Gas used
</
Text
>
<
Text
fontWeight=
{
500
}
>
Gas used
</
Text
>
<
Flex
columnGap=
{
4
}
>
<
Flex
columnGap=
{
4
}
mt=
{
2
}
>
<
Text
variant=
"secondary"
>
{
BigNumber
(
data
.
gas_used
||
0
).
toFormat
()
}
</
Text
>
<
Text
variant=
"secondary"
>
{
BigNumber
(
data
.
gas_used
||
0
).
toFormat
()
}
</
Text
>
<
Utilization
colorScheme=
"gray"
value=
{
BigNumber
(
data
.
gas_used
||
0
).
div
(
BigNumber
(
data
.
gas_limit
)).
toNumber
()
}
/>
<
Utilization
colorScheme=
"gray"
value=
{
BigNumber
(
data
.
gas_used
||
0
).
div
(
BigNumber
(
data
.
gas_limit
)).
toNumber
()
}
/>
<
GasUsedToTargetRatio
value=
{
data
.
gas_target_percentage
||
undefined
}
/>
<
GasUsedToTargetRatio
value=
{
data
.
gas_target_percentage
||
undefined
}
/>
...
@@ -65,12 +65,16 @@ const BlocksListItem = ({ data, isPending, enableTimeIncrement }: Props) => {
...
@@ -65,12 +65,16 @@ const BlocksListItem = ({ data, isPending, enableTimeIncrement }: Props) => {
<
Text
fontWeight=
{
500
}
>
Reward
{
appConfig
.
network
.
currency
.
symbol
}
</
Text
>
<
Text
fontWeight=
{
500
}
>
Reward
{
appConfig
.
network
.
currency
.
symbol
}
</
Text
>
<
Text
variant=
"secondary"
>
{
totalReward
.
div
(
WEI
).
toFixed
()
}
</
Text
>
<
Text
variant=
"secondary"
>
{
totalReward
.
div
(
WEI
).
toFixed
()
}
</
Text
>
</
Flex
>
</
Flex
>
<
Fle
x
>
<
Bo
x
>
<
Text
fontWeight=
{
500
}
>
Burnt fees
</
Text
>
<
Text
fontWeight=
{
500
}
>
Burnt fees
</
Text
>
<
Icon
as=
{
flameIcon
}
boxSize=
{
5
}
color=
"gray.500"
ml=
{
2
}
/>
<
Flex
columnGap=
{
4
}
mt=
{
2
}
>
<
Text
variant=
"secondary"
ml=
{
1
}
>
{
burntFees
.
div
(
WEI
).
toFixed
()
}
</
Text
>
<
Flex
>
<
Utilization
ml=
{
4
}
value=
{
burntFees
.
div
(
txFees
).
toNumber
()
}
/>
<
Icon
as=
{
flameIcon
}
boxSize=
{
5
}
color=
"gray.500"
/>
</
Flex
>
<
Text
variant=
"secondary"
ml=
{
1
}
>
{
burntFees
.
div
(
WEI
).
toFixed
()
}
</
Text
>
</
Flex
>
<
Utilization
ml=
{
4
}
value=
{
burntFees
.
div
(
txFees
).
toNumber
()
}
/>
</
Flex
>
</
Box
>
</
AccountListItemMobile
>
</
AccountListItemMobile
>
);
);
};
};
...
...
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