Skip to content

Commit

Permalink
feat(neuron-ui): adjust the layout of list
Browse files Browse the repository at this point in the history
1. enlarge the max width of address field to 500
2. limit the capacity(amount, value) field to [200, 250]
  • Loading branch information
Keith-CY committed Aug 12, 2019
1 parent c25b597 commit 6a11f99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/neuron-ui/src/components/Addresses/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Addresses = ({
fieldName: 'address',
className: 'monospacedFont',
minWidth: 100,
maxWidth: 400,
maxWidth: 500,
onRender: (item?: State.Address) => {
if (item) {
return (
Expand Down Expand Up @@ -121,7 +121,7 @@ const Addresses = ({
key: 'balance',
fieldName: 'balance',
minWidth: 200,
maxWidth: 400,
maxWidth: 250,
onRender: (item?: State.Address) => {
if (item) {
return (
Expand Down
8 changes: 4 additions & 4 deletions packages/neuron-ui/src/components/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const inputColumns: IColumn[] = [
{
key: 'capacity',
name: 'Capacity',
minWidth: 300,
maxWidth: 500,
minWidth: 200,
maxWidth: 250,
},
].map(
(col): IColumn => ({
Expand All @@ -61,8 +61,8 @@ const outputColumns: IColumn[] = [
{
key: 'capacity',
name: 'Capacity',
minWidth: 300,
maxWidth: 500,
minWidth: 200,
maxWidth: 250,
},
].map(col => ({
ariaLabel: col.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const TransactionList = ({
key: 'value',
fieldName: 'value',
minWidth: 200,
maxWidth: 500,
maxWidth: 250,
onRender: (item?: FormatTransaction) => {
if (item) {
return (
Expand Down

0 comments on commit 6a11f99

Please sign in to comment.