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
0235f01e
Commit
0235f01e
authored
Dec 05, 2022
by
POA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'Scroll for more' text note for tx actions area
parent
24a85f07
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
15 deletions
+32
-15
jquery.mCustomScrollbar.min.css
public/static/css/jquery.mCustomScrollbar.min.css
+11
-2
TxDetailsAction.tsx
ui/tx/details/TxDetailsAction.tsx
+2
-2
TxDetailsActions.tsx
ui/tx/details/TxDetailsActions.tsx
+19
-11
No files found.
public/static/css/jquery.mCustomScrollbar.min.css
View file @
0235f01e
This diff is collapsed.
Click to expand it.
ui/tx/details/TxDetailsAction.tsx
View file @
0235f01e
...
...
@@ -25,7 +25,7 @@ const TxDetailsAction = ({ protocol, type, data, isLast }) => {
}
return
(
<
Flex
flexWrap=
"wrap"
columnGap=
{
1
}
rowGap=
{
2
}
marginBottom=
{
isLast
?
5
:
0
}
>
<
Flex
flexWrap=
"wrap"
columnGap=
{
1
}
rowGap=
{
2
}
className=
{
isLast
?
"
lastItem
"
:
""
}
marginBottom=
{
isLast
?
5
:
0
}
>
<
Text
color=
"gray.500"
as=
"span"
>
{
actionName
[
type
][
0
]
}
</
Text
>
...
...
@@ -59,7 +59,7 @@ const TxDetailsAction = ({ protocol, type, data, isLast }) => {
}
else
if
(
type
===
'
mint_nft
'
)
{
const
tokenUrl
=
link
(
'
token_index
'
,
{
hash
:
data
.
address
});
return
(
<
Flex
rowGap=
{
2
}
flexDirection=
"column"
>
<
Flex
rowGap=
{
2
}
flexDirection=
"column"
className=
{
isLast
?
"
lastItem
"
:
""
}
marginBottom=
{
isLast
?
5
:
0
}
>
<
Flex
flexWrap=
"wrap"
columnGap=
{
1
}
rowGap=
{
2
}
>
<
Flex
columnGap=
{
1
}
>
<
Text
as=
"span"
>
Mint of
</
Text
>
...
...
ui/tx/details/TxDetailsActions.tsx
View file @
0235f01e
import
{
Box
,
Flex
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Flex
,
Text
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
{
space
}
from
'
lib/html-entities
'
;
import
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
...
...
@@ -12,16 +13,23 @@ const TxDetailsActions = ({ actions }) => {
hint=
"Highlighted events of the transaction"
position=
"relative"
>
<
Box
className=
"mCustomScrollbar"
data
-
mcs
-
theme=
"minimal-dark"
maxH=
{
40
}
>
<
Flex
flexDirection=
"column"
alignItems=
"flex-start"
rowGap=
{
5
}
w=
"100%"
fontWeight=
{
500
}
>
{
actions
.
map
((
action
,
index
)
=>
<
TxDetailsAction
key=
{
index
}
{
...
action
}
isLast=
{
index
===
actions
.
length
-
1
}
/>)
}
</
Flex
>
<
Box
w=
"100%"
>
<
Box
className=
"mCustomScrollbar"
data
-
mcs
-
theme=
"minimal-dark"
maxH=
{
36
}
>
<
Flex
flexDirection=
"column"
alignItems=
"flex-start"
rowGap=
{
5
}
w=
"100%"
fontWeight=
{
500
}
>
{
actions
.
map
((
action
,
index
)
=>
<
TxDetailsAction
key=
{
index
}
{
...
action
}
isLast=
{
index
===
actions
.
length
-
1
}
/>)
}
</
Flex
>
</
Box
>
<
Text
fontWeight=
{
500
}
color=
"gray.500"
fontSize=
"sm"
id=
"txActionsScrollForMore"
display=
"none"
marginTop=
{
5
}
>
Scroll for more
{
space
}
<
Text
color=
"gray.500"
transform=
"rotate(90deg)"
display=
"inline-block"
as=
"span"
>
»
</
Text
>
</
Text
>
</
Box
>
</
DetailsInfoItem
>
);
...
...
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