Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Account tooltip position updated
Browse files Browse the repository at this point in the history
Fix for issue #238
  • Loading branch information
MonikaCat committed Jan 3, 2020
1 parent f92d33e commit 5c2ddb7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
8 changes: 7 additions & 1 deletion client/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,13 @@ body {
margin: 0;
}
}


.validator-tooltip{
.tooltip{
left:17% !important;
}
}

.tooltip .tooltip-arrow {
position: absolute;
display: block;
Expand Down
3 changes: 1 addition & 2 deletions imports/api/accounts/server/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ Meteor.methods({
let rewards = HTTP.get(url);
if (rewards.statusCode == 200){
balance.rewards = JSON.parse(rewards.content).result.total;
console.log("I AM CALLIJG YOU JE");
}
}
}
catch (e){
console.log(e);
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/accounts/Delegations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class AccountDelegations extends Component{
</Row>
{this.props.delegations.sort((b, a) => (a.balance - b.balance)).map((d, i) => {
return <Row key={i} className="delegation-info">
<Col xs={6} md={4} className="text-nowrap overflow-auto"><AccountTooltip address={d.validator_address} /></Col>
<Col xs={6} md={4} className="delegation-row text-nowrap overflow-auto"><AccountTooltip address={d.validator_address} /></Col>
<Col xs={3} md={4}>{numbro(d.shares).format("0,0")}</Col>
<Col xs={3} md={4}>{new Coin(d.balance).stakeString()}</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/components/AccountTooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class AccountTooltip extends Account{
let moniker = validator.description && validator.description.moniker || validator.address;
let isActive = validator.status == 2 && !validator.jailed;

return <UncontrolledTooltip key='tooltip' className='validator-tooltip' placement='right' flip={false} target={this.ref} autohide={false} fade={false}>
return <UncontrolledTooltip key='tooltip' data-toggle='tooltip' container='body' className='validator-tooltip' placement='right' flip={false} target={this.ref} autohide={false} fade={false} delay={{show: 100, hide: 200}}>
<Card body className='validator-tooltip-card'>
<Row className='d-flex justify-content-center'>
<h4 className="moniker text-primary">{moniker}</h4>
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pretest": "npm run lint --silent"
},
"dependencies": {
"@babel/runtime": "^7.7.6",
"@babel/runtime": "^7.7.7",
"@ledgerhq/hw-transport-webusb": "^4.78.0",
"@lunie/cosmos-js": "0.0.22",
"@types/meteor-universe-i18n": "^1.14.2",
Expand All @@ -25,6 +25,7 @@
"jquery": "^3.4.1",
"js-sha256": "^0.9.0",
"ledger-cosmos-js": "^2.1.7",
"lodash": "^4.17.15",
"meteor-node-stubs": "^0.4.1",
"moment": "^2.24.0",
"moment-timezone": "^0.5.27",
Expand Down

0 comments on commit 5c2ddb7

Please sign in to comment.