Skip to content

Commit 84d10d2

Browse files
committed
feat(neuron-ui): add custom scrollbar on activity list
1 parent b357209 commit 84d10d2

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ const ActivityList = ({
8080
onItemInvoked={item => {
8181
showTransactionDetails(item.hash)
8282
}}
83+
className="customScrollBar"
8384
styles={{
8485
root: {
85-
overflow: 'auto',
86+
overflowX: 'hidden',
87+
overflowY: 'auto',
8688
height: '100%',
8789
backgroundColor: 'transparent',
8890
},

packages/neuron-ui/src/styles/index.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ navbar {
6666
}
6767
}
6868

69+
70+
.customScrollBar {
71+
&::-webkit-scrollbar {
72+
border-radius: 5px;
73+
background-color: #e0e0e0;
74+
width: 10px
75+
}
76+
77+
&::-webkit-scrollbar-thumb {
78+
border-radius: 5px;
79+
background-color: #bdbdbd;
80+
}
81+
}
82+
6983
@keyframes rotate360 {
7084
from {
7185
transform: rotate(0)

0 commit comments

Comments
 (0)