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
c8cb7ec1
Commit
c8cb7ec1
authored
Dec 13, 2022
by
POA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vertical scroller for tx actions area
parent
b4c80404
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
10 deletions
+14
-10
jquery.mCustomScrollbar.min.css
public/static/css/jquery.mCustomScrollbar.min.css
+2
-2
DetailsInfoItem.tsx
ui/shared/DetailsInfoItem.tsx
+2
-2
TxDetails.tsx
ui/tx/TxDetails.tsx
+6
-4
TxDetailsAction.tsx
ui/tx/details/TxDetailsAction.tsx
+1
-1
TxDetailsActions.tsx
ui/tx/details/TxDetailsActions.tsx
+3
-1
No files found.
public/static/css/jquery.mCustomScrollbar.min.css
View file @
c8cb7ec1
...
...
@@ -10,11 +10,11 @@
background
:
linear-gradient
(
180deg
,
hsla
(
0
,
0%
,
100%
,
.3
),
hsla
(
0
,
0%
,
100%
,
1
));
}
.mCustomScrollbar.mCS_no_scrollbar
:after
{
.mCustomScrollbar.mCS_no_scrollbar
_y
:after
{
display
:
none
;
}
.mC
ustomScrollbar.mCS_no_scrollbar
.lastItem
{
.mC
SB_container.mCS_no_scrollbar_y
.lastItem
{
margin-bottom
:
0
!important
;
}
...
...
ui/shared/DetailsInfoItem.tsx
View file @
c8cb7ec1
...
...
@@ -10,10 +10,10 @@ interface Props extends Omit<HTMLChakraProps<'div'>, 'title'> {
children
:
React
.
ReactNode
;
}
const
DetailsInfoItem
=
({
title
,
hint
,
note
,
noteDisplay
,
children
,
...
styles
}:
Props
)
=>
{
const
DetailsInfoItem
=
({
title
,
hint
,
note
,
noteDisplay
,
children
,
id
,
...
styles
}:
Props
)
=>
{
return
(
<>
<
GridItem
py=
{
{
base
:
1
,
lg
:
2
}
}
lineHeight=
{
5
}
{
...
styles
}
whiteSpace=
"nowrap"
_notFirst=
{
{
mt
:
{
base
:
3
,
lg
:
0
}
}
}
>
<
GridItem
py=
{
{
base
:
1
,
lg
:
2
}
}
id=
{
id
}
lineHeight=
{
5
}
{
...
styles
}
whiteSpace=
"nowrap"
_notFirst=
{
{
mt
:
{
base
:
3
,
lg
:
0
}
}
}
>
<
Flex
columnGap=
{
2
}
alignItems=
"flex-start"
>
<
Tooltip
label=
{
hint
}
...
...
ui/tx/TxDetails.tsx
View file @
c8cb7ec1
...
...
@@ -66,6 +66,8 @@ const TxDetails = () => {
...
toAddress
.
watchlist_names
||
[],
].
map
((
tag
)
=>
<
Tag
key=
{
tag
.
label
}
>
{
tag
.
display_name
}
</
Tag
>);
const
actionsExist
=
data
.
actions
&&
data
.
actions
.
length
>
0
;
return
(
<
Grid
columnGap=
{
8
}
rowGap=
{
{
base
:
3
,
lg
:
3
}
}
templateColumns=
{
{
base
:
'
minmax(0, 1fr)
'
,
lg
:
'
auto minmax(0, 1fr)
'
}
}
>
{
socketStatus
&&
(
...
...
@@ -126,10 +128,10 @@ const TxDetails = () => {
<
Text
variant=
"secondary"
>
{
getConfirmationDuration
(
data
.
confirmation_duration
)
}
</
Text
>
</
DetailsInfoItem
>
)
}
{
data
.
actions
&&
<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
mt=
{
{
base
:
3
,
lg
:
3
}
}
><
Divider
/></
GridItem
>
}
{
data
.
actions
&&
<
TxDetailsActions
actions=
{
data
.
actions
}
/>
}
{
data
.
actions
&&
<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
mb=
{
{
base
:
0
,
lg
:
3
}
}
><
Divider
/></
GridItem
>
}
{
!
data
.
actions
&&
<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
mt=
{
{
base
:
3
,
lg
:
8
}
}
/>
}
{
actionsExist
&&
(<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
mt=
{
{
base
:
3
,
lg
:
3
}
}
><
Divider
/></
GridItem
>)
}
{
actionsExist
&&
(<
TxDetailsActions
actions=
{
data
.
actions
}
/>)
}
{
actionsExist
&&
(<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
mb=
{
{
base
:
0
,
lg
:
3
}
}
><
Divider
/></
GridItem
>)
}
{
!
actionsExist
&&
(<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
mt=
{
{
base
:
3
,
lg
:
8
}
}
/>)
}
<
DetailsInfoItem
title=
"From"
hint=
"Address (external or contract) sending the transaction."
...
...
ui/tx/details/TxDetailsAction.tsx
View file @
c8cb7ec1
...
...
@@ -4,7 +4,7 @@ import React from 'react';
import
link
from
'
lib/link/link
'
;
import
{
space
}
from
'
lib/html-entities
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
import
TokenSnippet
from
'
ui/shared/TokenSnippet
'
;
import
TokenSnippet
from
'
ui/shared/TokenSnippet
/TokenSnippet
'
;
import
StringShorten
from
'
ui/shared/StringShorten
'
;
import
BigNumber
from
'
bignumber.js
'
;
...
...
ui/tx/details/TxDetailsActions.tsx
View file @
c8cb7ec1
...
...
@@ -16,7 +16,7 @@ const TxDetailsActions = ({ actions }) => {
position=
"relative"
id=
"txActionsTitle"
>
<
Box
className=
"mCustomScrollbar"
maxH=
{
36
}
w=
"9
0%
"
>
<
Box
className=
"mCustomScrollbar"
maxH=
{
36
}
w=
"9
8%"
overflow=
"hidden
"
>
<
Flex
flexDirection=
"column"
alignItems=
"flex-start"
...
...
@@ -31,9 +31,11 @@ const TxDetailsActions = ({ actions }) => {
$
(
"
.mCustomScrollbar
"
).
mCustomScrollbar
({
callbacks
:{
onOverflowY
:
()
=>
{
$
(
"
#txActionsTitle .note
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
.mCustomScrollbar
"
).
removeClass
(
"
mCS_no_scrollbar_y
"
);
},
onOverflowYNone
:
()
=>
{
$
(
"
#txActionsTitle .note
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
.mCustomScrollbar
"
).
addClass
(
"
mCS_no_scrollbar_y
"
);
}
},
theme
:
"
dark
"
,
...
...
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