fix(trading): add overflow hidden to candles tab container (#4803)
This commit is contained in:
parent
e944d3e37c
commit
3de5b07495
@ -56,6 +56,7 @@ const MainGrid = memo(
|
|||||||
<Tabs storageKey="console-trade-grid-main-left">
|
<Tabs storageKey="console-trade-grid-main-left">
|
||||||
<Tab
|
<Tab
|
||||||
id="chart"
|
id="chart"
|
||||||
|
overflowHidden
|
||||||
name={t('Chart')}
|
name={t('Chart')}
|
||||||
menu={<TradingViews.candles.menu />}
|
menu={<TradingViews.candles.menu />}
|
||||||
>
|
>
|
||||||
|
@ -113,7 +113,9 @@ export const Tabs = ({
|
|||||||
return (
|
return (
|
||||||
<TabsPrimitive.Content
|
<TabsPrimitive.Content
|
||||||
value={child.props.id}
|
value={child.props.id}
|
||||||
className="h-full"
|
className={classNames('h-full', {
|
||||||
|
'overflow-hidden': child.props.overflowHidden,
|
||||||
|
})}
|
||||||
data-testid={`tab-${child.props.id}`}
|
data-testid={`tab-${child.props.id}`}
|
||||||
>
|
>
|
||||||
{child.props.children}
|
{child.props.children}
|
||||||
@ -131,6 +133,7 @@ interface TabProps {
|
|||||||
name: string;
|
name: string;
|
||||||
indicator?: ReactNode;
|
indicator?: ReactNode;
|
||||||
hidden?: boolean;
|
hidden?: boolean;
|
||||||
|
overflowHidden?: boolean;
|
||||||
menu?: ReactNode;
|
menu?: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user