Skip to content

Commit

Permalink
fix: chart loading and distortion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Aug 15, 2024
1 parent f695289 commit 1049c58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/javascript/app/pages/bottom/tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const BottomTabs = () => {
/>}
{selectedTab === 1 && <Explanation />}
{selectedTab === 2 && hasLastDigit && <LastDigit />}
<div id='tab_graph' className={`chart-section ${isShowGraph ? '' : 'grap-hide'}`}>

<div id='tab_graph' className={`chart-section ${isShowGraph ? '' : 'graph-hide'}`}>
<p className='error-msg' id='chart-error' />
<div id='trade_live_chart'>
<div id='webtrader_chart' />
Expand Down
6 changes: 4 additions & 2 deletions src/sass/_common/reskin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ body {
}

// Hide persistent chart showing in under the main chart
div[data-highcharts-chart="0"]:not(.quill-purchase-popup div[data-highcharts-chart="0"]) {
div.chart-wrapper[data-highcharts-chart="0"]:not(.quill-purchase-popup div.chart-wrapper[data-highcharts-chart="0"]) {
position: absolute;
top: -9999px;
}
Expand Down Expand Up @@ -908,6 +908,7 @@ html.test {
}

.bottom-content-section {
position: relative;
min-height: 400px;
padding: 16px;

Expand Down Expand Up @@ -1099,7 +1100,8 @@ html.test {

// Graph visibility control
#tab_graph {
&.grap-hide {
&.graph-hide {
width: 100%;
position: absolute;
top: -9999px;
}
Expand Down

0 comments on commit 1049c58

Please sign in to comment.