Style the left pane scrollbar
This commit is contained in:
parent
2b08cbfdfe
commit
9f87543388
3 changed files with 19 additions and 2 deletions
|
@ -5746,6 +5746,23 @@ button.module-image__border-overlay:focus {
|
||||||
// Module: conversation list
|
// Module: conversation list
|
||||||
|
|
||||||
.module-conversation-list {
|
.module-conversation-list {
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 4px;
|
||||||
|
visibility: hidden;
|
||||||
|
width: 6px;
|
||||||
|
|
||||||
|
@include light-theme {
|
||||||
|
background: $color-black-alpha-40;
|
||||||
|
}
|
||||||
|
@include dark-theme {
|
||||||
|
background: $color-white-alpha-40;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::-webkit-scrollbar-thumb {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
&--scroll-behavior {
|
&--scroll-behavior {
|
||||||
&-default {
|
&-default {
|
||||||
@include smooth-scroll;
|
@include smooth-scroll;
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
|
|
||||||
&__settings-pane {
|
&__settings-pane {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: scroll;
|
overflow: overlay;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
&::-webkit-scrollbar-corner {
|
&::-webkit-scrollbar-corner {
|
||||||
|
|
|
@ -337,7 +337,7 @@ export const ConversationList: React.FC<PropsType> = ({
|
||||||
rowHeight={calculateRowHeight}
|
rowHeight={calculateRowHeight}
|
||||||
rowRenderer={renderRow}
|
rowRenderer={renderRow}
|
||||||
scrollToIndex={scrollToRowIndex}
|
scrollToIndex={scrollToRowIndex}
|
||||||
style={{ overflow: scrollable ? 'auto' : 'hidden' }}
|
style={{ overflow: scrollable ? 'overlay' : 'hidden' }}
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
width={width}
|
width={width}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue