* chore: tweak panel layout/styling * chore: tweak panel layout/styling * chore: add thicker borders
This commit is contained in:
parent
164108e6aa
commit
0964d6dee5
@ -65,7 +65,7 @@ export const TradeMarketHeader = ({
|
|||||||
const itemValueClassName =
|
const itemValueClassName =
|
||||||
'font-sans tracking-tighter text-black dark:text-white text-ui';
|
'font-sans tracking-tighter text-black dark:text-white text-ui';
|
||||||
const headerClassName = classNames(
|
const headerClassName = classNames(
|
||||||
'w-full p-8 bg-white dark:bg-black',
|
'w-full p-8 mb-4 bg-white dark:bg-black',
|
||||||
className
|
className
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
@ -140,7 +140,7 @@ export const TradeGrid = ({ market }: TradeGridProps) => {
|
|||||||
<Allotment.Pane>
|
<Allotment.Pane>
|
||||||
<Allotment proportionalLayout={false} minSize={200}>
|
<Allotment proportionalLayout={false} minSize={200}>
|
||||||
<Allotment.Pane priority={LayoutPriority.High} minSize={200}>
|
<Allotment.Pane priority={LayoutPriority.High} minSize={200}>
|
||||||
<TradeGridChild className="h-full px-4">
|
<TradeGridChild className="h-full px-4 bg-black-10 dark:bg-black-70">
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab id="candles" name={t('Candles')}>
|
<Tab id="candles" name={t('Candles')}>
|
||||||
<TradingViews.Candles marketId={market.id} />
|
<TradingViews.Candles marketId={market.id} />
|
||||||
@ -153,13 +153,13 @@ export const TradeGrid = ({ market }: TradeGridProps) => {
|
|||||||
</Allotment.Pane>
|
</Allotment.Pane>
|
||||||
<Allotment.Pane
|
<Allotment.Pane
|
||||||
priority={LayoutPriority.Low}
|
priority={LayoutPriority.Low}
|
||||||
preferredSize={375}
|
preferredSize={330}
|
||||||
minSize={200}
|
minSize={200}
|
||||||
>
|
>
|
||||||
<TradeGridChild className="h-full px-4">
|
<TradeGridChild className="h-full px-4 bg-black-10 dark:bg-black-70">
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab id="ticket" name={t('Ticket')}>
|
<Tab id="ticket" name={t('Ticket')}>
|
||||||
<TradingViews.Ticket marketId={market.id} />
|
<TradingViews.Ticket marketId={market.id}/>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab id="info" name={t('Info')}>
|
<Tab id="info" name={t('Info')}>
|
||||||
<TradingViews.Info marketId={market.id} />
|
<TradingViews.Info marketId={market.id} />
|
||||||
@ -169,10 +169,10 @@ export const TradeGrid = ({ market }: TradeGridProps) => {
|
|||||||
</Allotment.Pane>
|
</Allotment.Pane>
|
||||||
<Allotment.Pane
|
<Allotment.Pane
|
||||||
priority={LayoutPriority.Low}
|
priority={LayoutPriority.Low}
|
||||||
preferredSize={460}
|
preferredSize={430}
|
||||||
minSize={200}
|
minSize={200}
|
||||||
>
|
>
|
||||||
<TradeGridChild className="h-full px-4">
|
<TradeGridChild className="h-full px-4 bg-black-10 dark:bg-black-70">
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab id="orderbook" name={t('Orderbook')}>
|
<Tab id="orderbook" name={t('Orderbook')}>
|
||||||
<TradingViews.Orderbook marketId={market.id} />
|
<TradingViews.Orderbook marketId={market.id} />
|
||||||
@ -186,12 +186,11 @@ export const TradeGrid = ({ market }: TradeGridProps) => {
|
|||||||
</Allotment>
|
</Allotment>
|
||||||
</Allotment.Pane>
|
</Allotment.Pane>
|
||||||
<Allotment.Pane
|
<Allotment.Pane
|
||||||
snap={true}
|
|
||||||
priority={LayoutPriority.Low}
|
priority={LayoutPriority.Low}
|
||||||
preferredSize={200}
|
preferredSize={200}
|
||||||
minSize={200}
|
minSize={50}
|
||||||
>
|
>
|
||||||
<TradeGridChild className="h-full">
|
<TradeGridChild className="h-full mt-4">
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab id="positions" name={t('Positions')}>
|
<Tab id="positions" name={t('Positions')}>
|
||||||
<TradingViews.Positions />
|
<TradingViews.Positions />
|
||||||
|
@ -10,8 +10,10 @@ body,
|
|||||||
|
|
||||||
html > body {
|
html > body {
|
||||||
--focus-border: theme('colors.vega.pink');
|
--focus-border: theme('colors.vega.pink');
|
||||||
|
--separator-border: theme('colors.black.10');
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark > body {
|
html.dark > body {
|
||||||
--focus-border: theme('colors.vega.yellow');
|
--focus-border: theme('colors.vega.yellow');
|
||||||
|
--separator-border: theme('colors.black.70');
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ export const Tabs = ({ children }: TabsProps) => {
|
|||||||
return (
|
return (
|
||||||
<TabsPrimitive.Content
|
<TabsPrimitive.Content
|
||||||
value={child.props.id}
|
value={child.props.id}
|
||||||
className="h-full"
|
className="h-full bg-white dark:bg-black"
|
||||||
data-testid={`tab-${child.props.id}`}
|
data-testid={`tab-${child.props.id}`}
|
||||||
>
|
>
|
||||||
{child.props.children}
|
{child.props.children}
|
||||||
|
Loading…
Reference in New Issue
Block a user