diff options
| author | Shpuld Shpuldson <shpuld@gmail.com> | 2017-04-21 19:15:54 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shpuld@gmail.com> | 2017-04-21 19:15:54 +0300 |
| commit | c2db700544a3aae58b27c52eaf6cf3b47a2bcff4 (patch) | |
| tree | 4af4d286740c072250b791aebfcadc0a3bb526ff /src/components/user_card_content/user_card_content.vue | |
| parent | 36655002d062183a577f5b8fd66628d56670ec1f (diff) | |
| parent | 1f8d30386388f8b91aa84fdbd7861e588aa0d935 (diff) | |
Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma-fe into feature/hash-routed
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
| -rw-r--r-- | src/components/user_card_content/user_card_content.vue | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 8c971d53..bba16584 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -79,9 +79,8 @@ return this.$store.state.users.currentUser }, dailyAvg () { - return Math.round( - this.user.statuses_count / ((new Date() - new Date(this.user.created_at)) / (60 * 60 * 24 * 1000)) - ) + const days = Math.ceil((new Date() - new Date(this.user.created_at)) / (60 * 60 * 24 * 1000)) + return Math.round(this.user.statuses_count / days) } }, methods: { @@ -117,7 +116,6 @@ } .profile-panel-body { - padding-top: 0em; top: -0em; padding-top: 4em; } |
