Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue 3699 popover quick glance bugs #4420

Merged
merged 2 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/assets/v2/css/user_popover.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.popover-body {
padding: 0;
}

.popover-bounty {
max-width: 40em !important;
}
11 changes: 8 additions & 3 deletions app/assets/v2/js/user_popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ const renderPopOverData = json => {
.slice(0, 3)
.toString()}</span>
${Object.keys(json.profile.organizations).map(
org =>
`<img src="/dynamic/avatar/${org}" alt="${org}" class="rounded-circle" width="24" height="24">`
(org, index) => {
if (index < 3) {
`<img src="/dynamic/avatar/${org}" alt="${org}" class="rounded-circle" width="24" height="24">`;
} else {
`<img class="rounded-circle m-1" width="24" height="24" title=${Object.keys(json.profile.organizations.length)} times" src=""/>`;
}
}
)}
</div>
<span class="earned">~ ${
json.profile.total_earned
json.profile.total_earned.toFixed(4)
} ETH earned</span>
<div class="statistics d-flex justify-content-between mt-2">
<div class="popover_card text-center mr-4 pt-2">
Expand Down