Skip to content

Commit 6a11f99

Browse files
committed
feat(neuron-ui): adjust the layout of list
1. enlarge the max width of address field to 500 2. limit the capacity(amount, value) field to [200, 250]
1 parent c25b597 commit 6a11f99

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/neuron-ui/src/components/Addresses/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const Addresses = ({
6969
fieldName: 'address',
7070
className: 'monospacedFont',
7171
minWidth: 100,
72-
maxWidth: 400,
72+
maxWidth: 500,
7373
onRender: (item?: State.Address) => {
7474
if (item) {
7575
return (
@@ -121,7 +121,7 @@ const Addresses = ({
121121
key: 'balance',
122122
fieldName: 'balance',
123123
minWidth: 200,
124-
maxWidth: 400,
124+
maxWidth: 250,
125125
onRender: (item?: State.Address) => {
126126
if (item) {
127127
return (

packages/neuron-ui/src/components/Transaction/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const inputColumns: IColumn[] = [
3636
{
3737
key: 'capacity',
3838
name: 'Capacity',
39-
minWidth: 300,
40-
maxWidth: 500,
39+
minWidth: 200,
40+
maxWidth: 250,
4141
},
4242
].map(
4343
(col): IColumn => ({
@@ -61,8 +61,8 @@ const outputColumns: IColumn[] = [
6161
{
6262
key: 'capacity',
6363
name: 'Capacity',
64-
minWidth: 300,
65-
maxWidth: 500,
64+
minWidth: 200,
65+
maxWidth: 250,
6666
},
6767
].map(col => ({
6868
ariaLabel: col.name,

packages/neuron-ui/src/components/TransactionList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const TransactionList = ({
137137
key: 'value',
138138
fieldName: 'value',
139139
minWidth: 200,
140-
maxWidth: 500,
140+
maxWidth: 250,
141141
onRender: (item?: FormatTransaction) => {
142142
if (item) {
143143
return (

0 commit comments

Comments
 (0)