From 5ef5e9bac9124e6b21bdc0877221f32d91c64556 Mon Sep 17 00:00:00 2001 From: Ion Andrusciac Date: Wed, 3 Apr 2024 14:40:43 +0300 Subject: [PATCH] Fixed scrollbar on VirtualList component --- packages/ui/VirtualList/UiVirtualList.module.less | 6 ++++++ packages/ui/VirtualList/VirtualList.module.less | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/packages/ui/VirtualList/UiVirtualList.module.less b/packages/ui/VirtualList/UiVirtualList.module.less index 16c24a5df5..6a6a79d537 100644 --- a/packages/ui/VirtualList/UiVirtualList.module.less +++ b/packages/ui/VirtualList/UiVirtualList.module.less @@ -26,6 +26,12 @@ } } +.virtualList { + /* hide native scrollbar */ + scrollbar-width: none; +} + +/* to be removed after chrome version 121 */ .virtualList::-webkit-scrollbar { display: none; } diff --git a/packages/ui/VirtualList/VirtualList.module.less b/packages/ui/VirtualList/VirtualList.module.less index aa5dd23e74..41b34a0193 100644 --- a/packages/ui/VirtualList/VirtualList.module.less +++ b/packages/ui/VirtualList/VirtualList.module.less @@ -34,6 +34,12 @@ will-change: transform; } +.virtualList { + /* hide native scrollbar */ + scrollbar-width: none; +} + +/* to be removed after chrome version 121 */ .virtualList::-webkit-scrollbar { display: none; }