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
857d420a
Commit
857d420a
authored
Apr 29, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tables layout on small screens
parent
26df8898
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
17 deletions
+27
-17
AddressInternalTxs.pw.tsx_default_base-view-mobile-1.png
.../AddressInternalTxs.pw.tsx_default_base-view-mobile-1.png
+0
-0
InternalTxsTable.tsx
ui/internalTxs/InternalTxsTable.tsx
+4
-4
InternalTxsTableItem.tsx
ui/internalTxs/InternalTxsTableItem.tsx
+8
-4
TokensTableItem.tsx
ui/tokens/TokensTableItem.tsx
+11
-6
TxsTableItem.tsx
ui/txs/TxsTableItem.tsx
+2
-1
VerifiedContractsTable.tsx
ui/verifiedContracts/VerifiedContractsTable.tsx
+1
-1
VerifiedContractsTableItem.tsx
ui/verifiedContracts/VerifiedContractsTableItem.tsx
+1
-1
No files found.
ui/address/__screenshots__/AddressInternalTxs.pw.tsx_default_base-view-mobile-1.png
View replaced file @
26df8898
View file @
857d420a
42.5 KB
|
W:
|
H:
42.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/internalTxs/InternalTxsTable.tsx
View file @
857d420a
...
...
@@ -17,13 +17,13 @@ interface Props {
const
InternalTxsTable
=
({
data
,
currentAddress
,
isLoading
}:
Props
)
=>
{
return
(
<
AddressHighlightProvider
>
<
TableRoot
>
<
TableRoot
minW=
"900px"
>
<
TableHeaderSticky
top=
{
68
}
>
<
TableRow
>
<
TableColumnHeader
width=
"1
5%
"
>
Parent txn hash
</
TableColumnHeader
>
<
TableColumnHeader
width=
"1
80px
"
>
Parent txn hash
</
TableColumnHeader
>
<
TableColumnHeader
width=
"15%"
>
Type
</
TableColumnHeader
>
<
TableColumnHeader
width=
"1
0
%"
>
Block
</
TableColumnHeader
>
<
TableColumnHeader
width=
"
4
0%"
>
From/To
</
TableColumnHeader
>
<
TableColumnHeader
width=
"1
5
%"
>
Block
</
TableColumnHeader
>
<
TableColumnHeader
width=
"
5
0%"
>
From/To
</
TableColumnHeader
>
<
TableColumnHeader
width=
"20%"
isNumeric
>
Value
{
currencyUnits
.
ether
}
</
TableColumnHeader
>
...
...
ui/internalTxs/InternalTxsTableItem.tsx
View file @
857d420a
...
...
@@ -6,13 +6,13 @@ import type { InternalTransaction } from 'types/api/internalTransaction';
import
config
from
'
configs/app
'
;
import
{
Badge
}
from
'
toolkit/chakra/badge
'
;
import
{
Skeleton
}
from
'
toolkit/chakra/skeleton
'
;
import
{
TableCell
,
TableRow
}
from
'
toolkit/chakra/table
'
;
import
AddressFromTo
from
'
ui/shared/address/AddressFromTo
'
;
import
BlockEntity
from
'
ui/shared/entities/block/BlockEntity
'
;
import
TxEntity
from
'
ui/shared/entities/tx/TxEntity
'
;
import
TxStatus
from
'
ui/shared/statusTag/TxStatus
'
;
import
TimeAgoWithTooltip
from
'
ui/shared/TimeAgoWithTooltip
'
;
import
TruncatedValue
from
'
ui/shared/TruncatedValue
'
;
import
{
TX_INTERNALS_ITEMS
}
from
'
ui/tx/internals/utils
'
;
type
Props
=
InternalTransaction
&
{
currentAddress
?:
string
;
isLoading
?:
boolean
};
...
...
@@ -81,9 +81,13 @@ const InternalTxsTableItem = ({
/>
</
TableCell
>
<
TableCell
isNumeric
verticalAlign=
"middle"
>
<
Skeleton
loading=
{
isLoading
}
display=
"inline-block"
minW=
{
6
}
>
{
BigNumber
(
value
).
div
(
BigNumber
(
10
**
config
.
chain
.
currency
.
decimals
)).
toFormat
()
}
</
Skeleton
>
<
TruncatedValue
value=
{
BigNumber
(
value
).
div
(
BigNumber
(
10
**
config
.
chain
.
currency
.
decimals
)).
toFormat
()
}
isLoading=
{
isLoading
}
minW=
{
6
}
maxW=
"100%"
verticalAlign=
"middle"
/>
</
TableCell
>
</
TableRow
>
);
...
...
ui/tokens/TokensTableItem.tsx
View file @
857d420a
...
...
@@ -14,6 +14,7 @@ import AddressAddToWallet from 'ui/shared/address/AddressAddToWallet';
import
type
{
EntityProps
as
AddressEntityProps
}
from
'
ui/shared/entities/address/AddressEntity
'
;
import
AddressEntity
from
'
ui/shared/entities/address/AddressEntity
'
;
import
TokenEntity
from
'
ui/shared/entities/token/TokenEntity
'
;
import
TruncatedValue
from
'
ui/shared/TruncatedValue
'
;
type
Props
=
{
token
:
TokenInfo
;
...
...
@@ -104,14 +105,18 @@ const TokensTableItem = ({
</
Flex
>
</
TableCell
>
<
TableCell
isNumeric
>
<
Skeleton
loading=
{
isLoading
}
textStyle=
"sm"
fontWeight=
{
500
}
display=
"inline-block"
>
{
exchangeRate
&&
`$${ Number(exchangeRate).toLocaleString(undefined, { minimumSignificantDigits: 4 }) }`
}
</
Skeleton
>
<
TruncatedValue
value=
{
exchangeRate
?
`$${ Number(exchangeRate).toLocaleString(undefined, { minimumSignificantDigits: 4 }) }`
:
''
}
isLoading=
{
isLoading
}
maxW=
"100%"
/>
</
TableCell
>
<
TableCell
isNumeric
maxWidth=
"300px"
width=
"300px"
>
<
Skeleton
loading=
{
isLoading
}
textStyle=
"sm"
fontWeight=
{
500
}
display=
"inline-block"
>
{
marketCap
&&
`$${ BigNumber(marketCap).toFormat() }`
}
</
Skeleton
>
<
TruncatedValue
value=
{
marketCap
?
`$${ BigNumber(marketCap).toFormat() }`
:
''
}
isLoading=
{
isLoading
}
maxW=
"100%"
/>
</
TableCell
>
<
TableCell
isNumeric
>
<
Skeleton
...
...
ui/txs/TxsTableItem.tsx
View file @
857d420a
...
...
@@ -101,7 +101,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
</
TableCell
>
{
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
value
&&
(
<
TableCell
isNumeric
>
<
CurrencyValue
value=
{
tx
.
value
}
accuracy=
{
8
}
isLoading=
{
isLoading
}
/>
<
CurrencyValue
value=
{
tx
.
value
}
accuracy=
{
8
}
isLoading=
{
isLoading
}
wordBreak=
"break-word"
/>
</
TableCell
>
)
}
{
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
tx_fee
&&
(
...
...
@@ -112,6 +112,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
isLoading=
{
isLoading
}
withCurrency=
{
Boolean
(
tx
.
celo
||
tx
.
stability_fee
)
}
justifyContent=
"end"
wordBreak=
"break-word"
/>
</
TableCell
>
)
}
...
...
ui/verifiedContracts/VerifiedContractsTable.tsx
View file @
857d420a
...
...
@@ -25,7 +25,7 @@ const VerifiedContractsTable = ({ data, sort, setSorting, isLoading }: Props) =>
},
[
sort
,
setSorting
]);
return
(
<
TableRoot
>
<
TableRoot
minW=
"950px"
>
<
TableHeaderSticky
top=
{
ACTION_BAR_HEIGHT_DESKTOP
}
>
<
TableRow
>
<
TableColumnHeader
width=
"50%"
>
Contract
</
TableColumnHeader
>
...
...
ui/verifiedContracts/VerifiedContractsTableItem.tsx
View file @
857d420a
...
...
@@ -64,7 +64,7 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => {
value=
{
balance
}
isLoading=
{
isLoading
}
my=
{
1
}
w
=
"100%"
maxW
=
"100%"
/>
</
TableCell
>
<
TableCell
isNumeric
>
...
...
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