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
fad7516d
Commit
fad7516d
authored
Dec 27, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some layout issues
parent
67e7631b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
AddressIntTxsTableItem.tsx
ui/address/internals/AddressIntTxsTableItem.tsx
+2
-0
LatestTxsItem.tsx
ui/home/LatestTxsItem.tsx
+12
-10
TxAdditionalInfo.tsx
ui/txs/TxAdditionalInfo.tsx
+6
-4
TxsTableItem.tsx
ui/txs/TxsTableItem.tsx
+4
-2
No files found.
ui/address/internals/AddressIntTxsTableItem.tsx
View file @
fad7516d
...
...
@@ -83,6 +83,7 @@ const AddressIntTxsTableItem = ({
noLink=
{
isOut
}
noCopy=
{
isOut
}
w=
"min-content"
maxW=
"100%"
/>
</
Td
>
<
Td
px=
{
0
}
verticalAlign=
"middle"
>
...
...
@@ -99,6 +100,7 @@ const AddressIntTxsTableItem = ({
noLink=
{
isIn
}
noCopy=
{
isIn
}
w=
"min-content"
maxW=
"100%"
/>
)
}
</
Td
>
...
...
ui/home/LatestTxsItem.tsx
View file @
fad7516d
...
...
@@ -48,16 +48,17 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
display=
{
{
base
:
'
none
'
,
lg
:
'
grid
'
}
}
>
<
Flex
overflow=
"hidden"
w=
"100%"
>
<
TxAdditionalInfo
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
<
TxAdditionalInfo
tx=
{
tx
}
isLoading=
{
isLoading
}
my=
"3px"
/>
<
Box
ml=
{
3
}
w=
"calc(100% - 40px)"
>
<
HStack
flexWrap=
"wrap"
>
<
HStack
flexWrap=
"wrap"
my=
"3px"
>
<
TxType
types=
{
tx
.
tx_types
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
</
HStack
>
<
Flex
mt=
{
2
}
alignItems=
"center"
mt=
"7px"
mb=
"3px"
>
<
TxEntity
isLoading=
{
isLoading
}
...
...
@@ -88,35 +89,36 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
isLoading=
{
isLoading
}
flexShrink=
{
0
}
/>
<
Box
ml=
{
1
}
maxW=
"calc(100% - 24px)
"
>
<
Flex
ml=
{
1
}
maxW=
"calc(100% - 24px)"
flexDir=
"column"
rowGap=
"1px
"
>
<
AddressEntity
isLoading=
{
isLoading
}
address=
{
tx
.
from
}
fontSize=
"sm"
lineHeight=
{
6
}
lineHeight=
{
5
}
my=
"5px"
fontWeight=
"500"
mb=
{
2
}
/>
{
dataTo
&&
(
<
AddressEntity
isLoading=
{
isLoading
}
address=
{
dataTo
}
fontSize=
"sm"
lineHeight=
{
6
}
lineHeight=
{
5
}
my=
"5px"
fontWeight=
"500"
/>
)
}
</
Bo
x
>
</
Fle
x
>
</
Flex
>
<
Box
>
{
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
value
&&
(
<
Skeleton
isLoaded=
{
!
isLoading
}
mb=
{
2
}
>
<
Skeleton
isLoaded=
{
!
isLoading
}
mb=
"1px"
lineHeight=
"30px"
>
<
Text
as=
"span"
whiteSpace=
"pre"
>
{
config
.
chain
.
currency
.
symbol
}
</
Text
>
<
Text
as=
"span"
variant=
"secondary"
>
{
getValueWithUnit
(
tx
.
value
).
dp
(
5
).
toFormat
()
}
</
Text
>
</
Skeleton
>
)
}
{
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
tx_fee
&&
(
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"flex"
whiteSpace=
"pre"
>
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"flex"
whiteSpace=
"pre"
lineHeight=
"30px"
>
<
Text
as=
"span"
>
Fee
</
Text
>
{
tx
.
stability_fee
?
(
<
TxFeeStability
data=
{
tx
.
stability_fee
}
accuracy=
{
5
}
color=
"text_secondary"
hideUsd
/>
...
...
ui/txs/TxAdditionalInfo.tsx
View file @
fad7516d
import
{
chakra
,
Modal
,
ModalContent
,
ModalCloseButton
,
...
...
@@ -28,9 +29,10 @@ type Props =
})
&
{
isMobile
?:
boolean
;
isLoading
?:
boolean
;
className
?:
string
;
}
const
TxAdditionalInfo
=
({
hash
,
tx
,
isMobile
,
isLoading
}:
Props
)
=>
{
const
TxAdditionalInfo
=
({
hash
,
tx
,
isMobile
,
isLoading
,
className
}:
Props
)
=>
{
const
{
isOpen
,
onOpen
,
onClose
}
=
useDisclosure
();
const
content
=
hash
!==
undefined
?
<
TxAdditionalInfoContainer
hash=
{
hash
}
/>
:
<
TxAdditionalInfoContent
tx=
{
tx
}
/>;
...
...
@@ -38,7 +40,7 @@ const TxAdditionalInfo = ({ hash, tx, isMobile, isLoading }: Props) => {
if
(
isMobile
)
{
return
(
<>
<
AdditionalInfoButton
onClick=
{
onOpen
}
isLoading=
{
isLoading
}
/>
<
AdditionalInfoButton
onClick=
{
onOpen
}
isLoading=
{
isLoading
}
className=
{
className
}
/>
<
Modal
isOpen=
{
isOpen
}
onClose=
{
onClose
}
size=
"full"
>
<
ModalContent
paddingTop=
{
4
}
>
<
ModalCloseButton
/>
...
...
@@ -53,7 +55,7 @@ const TxAdditionalInfo = ({ hash, tx, isMobile, isLoading }: Props) => {
{
({
isOpen
})
=>
(
<>
<
PopoverTrigger
>
<
AdditionalInfoButton
isOpen=
{
isOpen
}
isLoading=
{
isLoading
}
/>
<
AdditionalInfoButton
isOpen=
{
isOpen
}
isLoading=
{
isLoading
}
className=
{
className
}
/>
</
PopoverTrigger
>
<
PopoverContent
border=
"1px solid"
borderColor=
"divider"
>
<
PopoverBody
>
...
...
@@ -66,4 +68,4 @@ const TxAdditionalInfo = ({ hash, tx, isMobile, isLoading }: Props) => {
);
};
export
default
React
.
memo
(
TxAdditionalInfo
);
export
default
React
.
memo
(
chakra
(
TxAdditionalInfo
)
);
ui/txs/TxsTableItem.tsx
View file @
fad7516d
...
...
@@ -53,7 +53,8 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
truncation=
"constant"
w=
"min-content"
maxW=
"100%"
py=
"2px"
my=
"2px"
lineHeight=
"20px"
/>
);
...
...
@@ -67,6 +68,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
w=
"min-content"
maxW=
"100%"
py=
"2px"
lineHeight=
"20px"
/>
)
:
'
-
'
;
...
...
@@ -151,7 +153,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
isLoading=
{
isLoading
}
/>
)
}
<
VStack
alignItems=
"start"
ml=
{
1
}
w=
"calc(100% - 48px)"
>
<
VStack
alignItems=
"start"
ml=
{
1
}
w=
"calc(100% - 48px)"
gap=
"11px"
>
{
addressFrom
}
{
addressTo
}
</
VStack
>
...
...
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