Skip to content

Commit

Permalink
DDW-16 Table comparison view for stake pools - adding support ticker …
Browse files Browse the repository at this point in the history
…click and thumbnail opening
  • Loading branch information
DeeJayElly committed Oct 19, 2020
1 parent e3eafe4 commit ab5596e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -256,7 +256,7 @@ export default class TooltipPool extends Component<Props, State> {
const componentTop = !fromStakePool ? THUMBNAIL_HEIGHT + ARROW_HEIGHT / 2 : THUMBNAIL_HEIGHT + ARROW_WIDTH / 2;
const componentBottom = !fromStakePool ? THUMBNAIL_HEIGHT + ARROW_HEIGHT / 2 : THUMBNAIL_HEIGHT / 2;

const arrowLeft = !fromStakePool ? -componentLeft + THUMBNAIL_OFFSET_WIDTH - ARROW_OFFSET : THUMBNAIL_HEIGHT - ARROW_WIDTH;
const arrowLeft = !fromStakePool ? -componentLeft + THUMBNAIL_OFFSET_WIDTH - ARROW_OFFSET : THUMBNAIL_HEIGHT - ARROW_WIDTH - TOOLTIP_DELTA;
const arrowTop = -(ARROW_WIDTH / 2);
const arrowBottom = -(ARROW_WIDTH / 2);

Expand Down Expand Up @@ -286,6 +286,7 @@ export default class TooltipPool extends Component<Props, State> {
} else {
componentBottom = -((TOOLTIP_MAX_HEIGHT * bottom) / this.containerHeight);
arrowBottom = -componentBottom + ARROW_WIDTH / 2;
if (fromStakePool) arrowBottom -= TOOLTIP_DELTA;
}

const arrowLeft = -(ARROW_WIDTH / 2);
Expand Down

0 comments on commit ab5596e

Please sign in to comment.