Skip to content

Commit

Permalink
fix resizeable library error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadessu committed Sep 18, 2024
1 parent abf0fba commit 1c73d3f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
6 changes: 2 additions & 4 deletions src/pages/platformAmbient/Trade/Trade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,8 @@ function Trade() {
showResizeable={
!isCandleDataNull && !isChartFullScreen && !isFuta
}
style={{
maxHeight: isFuta ? '100%' : 'calc(100% - 54px)',

}}
isFuta={isFuta}

enable={{
bottom: !isChartFullScreen,
top: false,
Expand Down
37 changes: 19 additions & 18 deletions src/styled/Components/Trade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,32 @@ export const MainSection = styled.section<{

export const ResizableContainer = styled(Resizable)<{
showResizeable: boolean;
}>`
isFuta?: boolean;
}>`
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
// max-height: calc(100% - 54px);
max-height: ${({ isFuta }) => (isFuta ? '100%' : 'calc(100% - 54px)')};
min-height: 0px;
${({ showResizeable }) =>
showResizeable &&
`
& > div:last-child > * {
bottom: 0 !important;
height: 5px !important;
background-color: var(--dark3);
z-index: 8;
}
& > div:last-child > div:nth-child(2), & > div:last-child > div:nth-child(4) {
z-index: -1;
display: none;
}
showResizeable &&
`
& > div:last-child > * {
bottom: 0 !important;
height: 5px !important;
background-color: var(--dark3);
z-index: 8;
}
& > div:last-child > div:nth-child(2), & > div:last-child > div:nth-child(4) {
z-index: -1;
display: none;
}
`}
`;
`;

export const ChartContainer = styled.div<{
fullScreen: boolean;
Expand Down

0 comments on commit 1c73d3f

Please sign in to comment.