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
dd29de20
Commit
dd29de20
authored
Feb 21, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loooong numbers
parent
d260e1a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
BlockDetails.tsx
ui/block/BlockDetails.tsx
+6
-6
BlockDetails.pw.tsx_mobile_regular-block-mobile-dark-mode-1.png
...etails.pw.tsx_mobile_regular-block-mobile-dark-mode-1.png
+0
-0
TokenDetails.tsx
ui/token/TokenDetails.tsx
+8
-2
No files found.
ui/block/BlockDetails.tsx
View file @
dd29de20
...
...
@@ -274,18 +274,18 @@ const BlockDetails = () => {
<
DetailsInfoItem
title=
"Difficulty"
hint=
{
`Block difficulty for ${ validatorTitle }, used to calibrate block generation time`
}
whiteSpace=
"normal"
wordBreak=
"break-all"
>
{
BigNumber
(
data
.
difficulty
).
toFormat
()
}
<
Box
whiteSpace=
"nowrap"
overflow=
"hidden"
>
<
HashStringShortenDynamic
hash=
{
BigNumber
(
data
.
difficulty
).
toFormat
()
}
/>
</
Box
>
</
DetailsInfoItem
>
<
DetailsInfoItem
title=
"Total difficulty"
hint=
"Total difficulty of the chain until this block"
whiteSpace=
"normal"
wordBreak=
"break-all"
>
{
BigNumber
(
data
.
total_difficulty
).
toFormat
()
}
<
Box
whiteSpace=
"nowrap"
overflow=
"hidden"
>
<
HashStringShortenDynamic
hash=
{
BigNumber
(
data
.
total_difficulty
).
toFormat
()
}
/>
</
Box
>
</
DetailsInfoItem
>
{
sectionGap
}
...
...
ui/block/__screenshots__/BlockDetails.pw.tsx_mobile_regular-block-mobile-dark-mode-1.png
View replaced file @
d260e1a4
View file @
dd29de20
95.6 KB
|
W:
|
H:
94.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/token/TokenDetails.tsx
View file @
dd29de20
import
{
Grid
,
Link
,
Skeleton
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Flex
,
Grid
,
Link
,
Skeleton
}
from
'
@chakra-ui/react
'
;
import
type
{
UseQueryResult
}
from
'
@tanstack/react-query
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
,
{
useCallback
}
from
'
react
'
;
...
...
@@ -11,6 +11,7 @@ import getCurrencyValue from 'lib/getCurrencyValue';
import
type
{
TokenTabs
}
from
'
ui/pages/Token
'
;
import
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
DetailsSponsoredItem
from
'
ui/shared/DetailsSponsoredItem
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
DetailsSkeletonRow
from
'
ui/shared/skeletons/DetailsSkeletonRow
'
;
interface
Props
{
...
...
@@ -109,7 +110,12 @@ const TokenDetails = ({ tokenQuery }: Props) => {
wordBreak=
"break-word"
whiteSpace=
"pre-wrap"
>
{
`${ totalValue?.valueStr || 0 } ${ symbol || '' }`
}
<
Flex
w=
"100%"
>
<
Box
whiteSpace=
"nowrap"
overflow=
"hidden"
>
<
HashStringShortenDynamic
hash=
{
totalValue
?.
valueStr
||
'
0
'
}
/>
</
Box
>
<
Box
flexShrink=
{
0
}
>
{
symbol
||
''
}
</
Box
>
</
Flex
>
</
DetailsInfoItem
>
<
DetailsInfoItem
title=
"Holders"
...
...
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