feat(trading): move deal ticket panel to the left (#3842)
Co-authored-by: maciek <maciek@vegaprotocol.io>
This commit is contained in:
parent
9658363b56
commit
079d8bc48d
@ -245,7 +245,7 @@ const MainGrid = memo(
|
|||||||
pinnedAsset?: PinnedAsset;
|
pinnedAsset?: PinnedAsset;
|
||||||
}) => {
|
}) => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [sizes, handleOnLayoutChange] = usePaneLayout({ id: 'top' });
|
const [sizes, handleOnLayoutChange] = usePaneLayout({ id: 'top-1' });
|
||||||
const [sizesMiddle, handleOnMiddleLayoutChange] = usePaneLayout({
|
const [sizesMiddle, handleOnMiddleLayoutChange] = usePaneLayout({
|
||||||
id: 'middle',
|
id: 'middle',
|
||||||
});
|
});
|
||||||
@ -259,27 +259,7 @@ const MainGrid = memo(
|
|||||||
onChange={handleOnMiddleLayoutChange}
|
onChange={handleOnMiddleLayoutChange}
|
||||||
>
|
>
|
||||||
<ResizableGridPanel
|
<ResizableGridPanel
|
||||||
priority={LayoutPriority.High}
|
preferredSize={sizesMiddle[0] || 330}
|
||||||
minSize={200}
|
|
||||||
preferredSize={sizesMiddle[0] || '50%'}
|
|
||||||
>
|
|
||||||
<TradeGridChild>
|
|
||||||
<Tabs storageKey="console-trade-grid-main-left">
|
|
||||||
<Tab id="chart" name={t('Chart')}>
|
|
||||||
<TradingViews.candles.component marketId={marketId} />
|
|
||||||
</Tab>
|
|
||||||
<Tab id="depth" name={t('Depth')}>
|
|
||||||
<TradingViews.depth.component marketId={marketId} />
|
|
||||||
</Tab>
|
|
||||||
<Tab id="liquidity" name={t('Liquidity')}>
|
|
||||||
<TradingViews.liquidity.component marketId={marketId} />
|
|
||||||
</Tab>
|
|
||||||
</Tabs>
|
|
||||||
</TradeGridChild>
|
|
||||||
</ResizableGridPanel>
|
|
||||||
<ResizableGridPanel
|
|
||||||
priority={LayoutPriority.Low}
|
|
||||||
preferredSize={sizesMiddle[1] || 330}
|
|
||||||
minSize={300}
|
minSize={300}
|
||||||
>
|
>
|
||||||
<TradeGridChild>
|
<TradeGridChild>
|
||||||
@ -297,7 +277,24 @@ const MainGrid = memo(
|
|||||||
</TradeGridChild>
|
</TradeGridChild>
|
||||||
</ResizableGridPanel>
|
</ResizableGridPanel>
|
||||||
<ResizableGridPanel
|
<ResizableGridPanel
|
||||||
priority={LayoutPriority.Low}
|
minSize={200}
|
||||||
|
preferredSize={sizesMiddle[1] || '50%'}
|
||||||
|
>
|
||||||
|
<TradeGridChild>
|
||||||
|
<Tabs storageKey="console-trade-grid-main-left">
|
||||||
|
<Tab id="chart" name={t('Chart')}>
|
||||||
|
<TradingViews.candles.component marketId={marketId} />
|
||||||
|
</Tab>
|
||||||
|
<Tab id="depth" name={t('Depth')}>
|
||||||
|
<TradingViews.depth.component marketId={marketId} />
|
||||||
|
</Tab>
|
||||||
|
<Tab id="liquidity" name={t('Liquidity')}>
|
||||||
|
<TradingViews.liquidity.component marketId={marketId} />
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
</TradeGridChild>
|
||||||
|
</ResizableGridPanel>
|
||||||
|
<ResizableGridPanel
|
||||||
preferredSize={sizesMiddle[2] || 430}
|
preferredSize={sizesMiddle[2] || 430}
|
||||||
minSize={200}
|
minSize={200}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user