feat: use the default style for the scrollbar in mobile

This commit is contained in:
Zeke Zhang 2024-08-07 17:29:07 +08:00
parent 4eb35a3ad9
commit e6e424c8a2

View File

@ -1,3 +1,5 @@
// the custom style for desktop
@media (min-width: 768px) {
/* width */
::-webkit-scrollbar {
width: 8px;
@ -33,3 +35,12 @@
.rc-virtual-list-scrollbar-thumb:active {
background: var(--colorBgScrollBarActive) !important;
}
}
// the custom style for mobile
@media (max-width: 767px) {
// ensure smooth scrolling on iOS devices
.smooth-scroll {
-webkit-overflow-scrolling: touch;
}
}