Skip to content

Commit

Permalink
Prince/ Chart issues (#802)
Browse files Browse the repository at this point in the history
* chore: hide annoying chart

* fix: chart loading and distortion issue

* chore: fix issues that cameback
  • Loading branch information
prince-deriv authored Aug 20, 2024
1 parent 0104066 commit 30493ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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 = () => {
/>}
{selected_tab === 1 && <Explanation />}
{selected_tab === 2 && has_last_digit && <LastDigit />}
<div id='tab_graph' className={`chart-section ${is_show_graph ? '' : 'grap-hide'}`}>

<div id='tab_graph' className={`chart-section ${is_show_graph ? '' : 'graph-hide'}`}>
<p className='error-msg' id='chart-error' />
<div id='trade_live_chart'>
<div id='webtrader_chart' />
Expand Down
3 changes: 3 additions & 0 deletions src/javascript/app/pages/trade/purchase/contract-details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { Explanation } from '../../bottom/explanation';
import { TimeTooltipWrapper, triggerClick } from '../../../common/helpers';

const resetPopupData = (is_audit_reset = false) => {
// Trigger old close btn
triggerClick('.inpage_popup_container a.close');

const audit_reset_object = {
cd_show_audit : false,
audit_data_end: [],
Expand Down
7 changes: 4 additions & 3 deletions src/sass/_common/reskin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ body {
.chart-section {
padding-block: 32px;
}



.contained-section {
width: 100%;
max-width: 940px;
Expand Down Expand Up @@ -907,6 +906,7 @@ html.test {
}

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

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

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

0 comments on commit 30493ca

Please sign in to comment.