Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

fix: move Derived to the correct position based on requirements #7287

Merged
6 changes: 1 addition & 5 deletions src/javascript/app/pages/trade/markets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,7 @@ class Markets extends React.Component {
current_viewed_node.children[0].removeAttribute('style');
current_viewed_node.children[0].classList.remove(class_under);
}
if (Object.values(current_viewed_node.children[0].classList).includes('label')) {
current_viewed_node.children[1].classList.add(class_sticky);
} else {
current_viewed_node.children[0].classList.add(class_sticky);
}
current_viewed_node.children[0].classList.add(class_sticky);
current_viewed_node.style.paddingTop = `${TITLE_HEIGHT}px`;
}

Expand Down
16 changes: 16 additions & 0 deletions src/sass/app/components/market.scss
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,22 @@
font-size: 20px;
padding: 16px 0px;
font-weight: 700;
flex: 1 0 auto;
color: $COLOR_BLUE;

&.sticky {
position: absolute;
width: 431px;
top: 60px;
background: $COLOR_WHITE;
@media (max-width: 767px) {
aizad-deriv marked this conversation as resolved.
Show resolved Hide resolved
top: 123px;
width: calc(100% - 20px);
}
}
&.put_under {
z-index: -1;
}
}
.market_name {
font-size: 18px;
Expand Down