From 1bb408779eed4d4b6fe5619abb65c4c1a978babe Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 1 Nov 2021 15:24:35 +0100 Subject: [PATCH] restore scrollheight auto calculation --- .../src/lib/remix-ui-vertical-icons-panel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx index 736749a1be..d813a69c4f 100644 --- a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx +++ b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx @@ -96,7 +96,7 @@ export function RemixUiVerticalIconsPanel ({ return (
-
600 +
scrollableRef.current.clientHeight ? 'remixui_default-icons-container remixui_requiredSection' : 'remixui_requiredSection'}>
600 + className={scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? 'remixui_default-icons-container remixui_scrollable-container remixui_scrollbar remixui_hide-scroll' : 'remixui_scrollable-container remixui_scrollbar remixui_hide-scroll'} ref={scrollableRef}