Skip to content

Commit

Permalink
feat(neuron-ui): align list with description field
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 26, 2019
1 parent 7728c6b commit ea9e034
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/neuron-ui/src/components/Addresses/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const Addresses = ({
onItemContextMenu={item => {
contextMenu({ type: 'addressList', id: item.identifier })
}}
className="listWithDesc"
/>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ const TransactionList = ({
contextMenu({ type: 'transactionList', id: item.hash })
}
}}
className="listWithDesc"
/>
)
}
Expand Down
2 changes: 2 additions & 0 deletions packages/neuron-ui/src/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ import './NetworkSetting.stories'
import './PasswordRequest.stories'
import './TransactionFeePanel.stories'
import './SyncStatus.stories'
import 'styles/index.scss'
import './styles.scss'
3 changes: 3 additions & 0 deletions packages/neuron-ui/src/stories/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
display: block
}
14 changes: 13 additions & 1 deletion packages/neuron-ui/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,16 @@ navbar {

.fixedWidth {
font-family: monospace;
}
}

.listWithDesc {
.ms-DetailsRow-cell {
display: flex;
align-items: center;
}

.text-overflow {
overflow: hidden;
text-overflow: ellipsis
}
}

0 comments on commit ea9e034

Please sign in to comment.