From 12abca65b8b585cef5cc83c3ea394484ab2cfd7d Mon Sep 17 00:00:00 2001 From: Bhargav Date: Tue, 1 Aug 2023 00:21:08 +0530 Subject: [PATCH] fix: Fixed 10080 settings sidebar scrolling issue (#10471) * fix: #10080 settings sidebar scrolling issue * fix: type error Signed-off-by: Udit Takkar * Fixed type error --------- Signed-off-by: Udit Takkar Co-authored-by: Udit Takkar Co-authored-by: Alex van Andel --- .../settings/layouts/SettingsLayout.tsx | 48 ++++++++++++++----- packages/features/shell/Shell.tsx | 12 +++-- 2 files changed, 45 insertions(+), 15 deletions(-) diff --git a/packages/features/settings/layouts/SettingsLayout.tsx b/packages/features/settings/layouts/SettingsLayout.tsx index 68e1aa86d5..57c6297c64 100644 --- a/packages/features/settings/layouts/SettingsLayout.tsx +++ b/packages/features/settings/layouts/SettingsLayout.tsx @@ -185,11 +185,13 @@ const BackButtonInSidebar = ({ name }: { name: string }) => { interface SettingsSidebarContainerProps { className?: string; navigationIsOpenedOnMobile?: boolean; + bannersHeight?: number; } const SettingsSidebarContainer = ({ className = "", navigationIsOpenedOnMobile, + bannersHeight, }: SettingsSidebarContainerProps) => { const { t } = useLocale(); const router = useRouter(); @@ -218,6 +220,7 @@ const SettingsSidebarContainer = ({ return (