Skip to content

Commit

Permalink
feat(neuron-ui): add custom scrollbar on activity list
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 10, 2019
1 parent b357209 commit 84d10d2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/neuron-ui/src/components/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ const ActivityList = ({
onItemInvoked={item => {
showTransactionDetails(item.hash)
}}
className="customScrollBar"
styles={{
root: {
overflow: 'auto',
overflowX: 'hidden',
overflowY: 'auto',
height: '100%',
backgroundColor: 'transparent',
},
Expand Down
14 changes: 14 additions & 0 deletions packages/neuron-ui/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ navbar {
}
}


.customScrollBar {
&::-webkit-scrollbar {
border-radius: 5px;
background-color: #e0e0e0;
width: 10px
}

&::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: #bdbdbd;
}
}

@keyframes rotate360 {
from {
transform: rotate(0)
Expand Down

0 comments on commit 84d10d2

Please sign in to comment.