From a979c62f35901246d9bd480689a4b36100b6f74d Mon Sep 17 00:00:00 2001 From: lianahus Date: Thu, 4 Nov 2021 12:55:03 +0100 Subject: [PATCH] fixed scroll. todo@ icon should be hidden if scroll is hidden --- libs/remix-ui/tabs/src/lib/remix-ui-tabs.css | 1 - libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx | 25 +++++++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.css b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.css index e1d398360e..7df5e07993 100644 --- a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.css +++ b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.css @@ -43,7 +43,6 @@ overflow-x: auto; overflow-y: hidden; white-space: nowrap; - max-width: 1000px; } /* Hide scrollbar for Chrome, Safari and Opera */ diff --git a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx index 9ebcc05e8e..5efc17aaca 100644 --- a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx +++ b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx @@ -62,15 +62,24 @@ export const TabsUI = (props: TabsUIProps) => { }, []) return ( -
-
- props.onZoomOut()}> - props.onZoomIn()}> +
+
+
+ props.onZoomOut()}> + props.onZoomIn()}> +
+ { props.onSelect(index); currentIndexRef.current = index; setSelectedIndex(index) }} + > + + {props.tabs.map((tab, i) => {renderTab(tab, i)})} + + {props.tabs.map((tab) => )} +
- { props.onSelect(index); currentIndexRef.current = index; setSelectedIndex(index) }} > - {props.tabs.map((tab, i) => {renderTab(tab, i)})} - {props.tabs.map((tab) => )} - +
) }