mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-17 07:41:35 +03:00
Add tooltip to show percentage values of posting stats
This commit is contained in:
parent
64db69af63
commit
f7ffce1b46
1 changed files with 10 additions and 1 deletions
|
@ -662,7 +662,16 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
|
||||||
>
|
>
|
||||||
<div class="shazam-container">
|
<div class="shazam-container">
|
||||||
<div class="shazam-container-inner">
|
<div class="shazam-container-inner">
|
||||||
<div class="posting-stats">
|
<div
|
||||||
|
class="posting-stats"
|
||||||
|
title={`${Math.round(
|
||||||
|
(postingStats.originals / postingStats.total) * 100,
|
||||||
|
)}% original posts, ${Math.round(
|
||||||
|
(postingStats.replies / postingStats.total) * 100,
|
||||||
|
)}% replies, ${Math.round(
|
||||||
|
(postingStats.boosts / postingStats.total) * 100,
|
||||||
|
)}% boosts`}
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
{postingStats.daysSinceLastPost < 365
|
{postingStats.daysSinceLastPost < 365
|
||||||
? `Last ${postingStats.total} posts in the past
|
? `Last ${postingStats.total} posts in the past
|
||||||
|
|
Loading…
Add table
Reference in a new issue