Skip to content

Commit

Permalink
fix chart expansion bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadessu committed Sep 18, 2024
1 parent 1c73d3f commit 511e87b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/pages/platformAmbient/Trade/TradeCharts/TradeCharts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ function TradeCharts(props: propsIF) {
const { pathname } = useLocation();
const smallScreen = useMediaQuery('(max-width: 768px)');

const isFuta = ['futa'].includes(platformName)



const isMarketOrLimitModule =
pathname.includes('market') || pathname.includes('limit');

Expand Down Expand Up @@ -295,7 +299,7 @@ function TradeCharts(props: propsIF) {
/>
</div>
)}
{!['futa'].includes(platformName) && (
{!isFuta && (
<div className={styles.mobile_settings_row}>
<p className={styles.mobile_settings_header}>Curve/Depth:</p>
<CurveDepth overlayMethods={chartSettings.poolOverlay} />
Expand Down Expand Up @@ -338,10 +342,10 @@ function TradeCharts(props: propsIF) {
fullWidth
style={{
padding:
isChartFullScreen || ['futa'].includes(platformName)
isChartFullScreen || isFuta
? '1rem'
: '0',
background: isChartFullScreen ? 'var(--dark2)' : '',
background: isChartFullScreen ? isFuta ? 'var(--dark1)' : 'var(--dark2)' : '',
}}
ref={chartCanvasRef}
>
Expand Down
2 changes: 1 addition & 1 deletion src/styled/Components/Trade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const ResizableContainer = styled(Resizable)<{
align-items: center;
overflow: hidden;
max-height: ${({ isFuta }) => (isFuta ? '100%' : 'calc(100% - 54px)')};
max-height: ${({ isFuta }) => (isFuta ? 'calc(100% - 5px)' : 'calc(100% - 54px)')};
min-height: 0px;
${({ showResizeable }) =>
Expand Down

0 comments on commit 511e87b

Please sign in to comment.