From 549e655ab243e37d934bfae3f574fb57a9ab9740 Mon Sep 17 00:00:00 2001 From: danieldeng2 <danieldeng223@gmail.com> Date: Fri, 7 Aug 2020 09:49:46 +0100 Subject: [PATCH] Add overscroll contain for sidebar --- frontend/src/components/organisms/LeftBar/style.module.scss | 3 ++- frontend/src/components/organisms/RightBar/style.module.scss | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/organisms/LeftBar/style.module.scss b/frontend/src/components/organisms/LeftBar/style.module.scss index b8dac7e2f..e1881a325 100644 --- a/frontend/src/components/organisms/LeftBar/style.module.scss +++ b/frontend/src/components/organisms/LeftBar/style.module.scss @@ -8,7 +8,8 @@ height: calc(100vh - 61px); padding-bottom: 30px; overflow-y: auto; - overflow-x: hidden; + overflow-x: hidden; + overscroll-behavior: contain; background: #fff; box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1); -webkit-transition: all 0.5s ease; diff --git a/frontend/src/components/organisms/RightBar/style.module.scss b/frontend/src/components/organisms/RightBar/style.module.scss index b116385e8..02391fe5c 100644 --- a/frontend/src/components/organisms/RightBar/style.module.scss +++ b/frontend/src/components/organisms/RightBar/style.module.scss @@ -8,7 +8,8 @@ height: calc(100vh - 61px); padding-bottom: 30px; overflow-y: auto; - overflow-x: hidden; + overflow-x: hidden; + overscroll-behavior: contain; background: #fff; box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1); -webkit-transition: all 0.5s ease; -- GitLab