fix(trading): add overflow hidden to candles tab container (#4803)

This commit is contained in:
Bartłomiej Głownia 2023-09-15 14:13:05 +02:00 committed by GitHub
parent e944d3e37c
commit 3de5b07495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -56,6 +56,7 @@ const MainGrid = memo(
<Tabs storageKey="console-trade-grid-main-left">
<Tab
id="chart"
overflowHidden
name={t('Chart')}
menu={<TradingViews.candles.menu />}
>

View File

@ -113,7 +113,9 @@ export const Tabs = ({
return (
<TabsPrimitive.Content
value={child.props.id}
className="h-full"
className={classNames('h-full', {
'overflow-hidden': child.props.overflowHidden,
})}
data-testid={`tab-${child.props.id}`}
>
{child.props.children}
@ -131,6 +133,7 @@ interface TabProps {
name: string;
indicator?: ReactNode;
hidden?: boolean;
overflowHidden?: boolean;
menu?: ReactNode;
}