Flarum Discussion Views
MichaelBelgium Oh yeah I'll probably do this. Didn't know flarum shortened it so didn't think about it ?
Please do it soon, thank you. ?
lorem Somehow it doesn't work as I expected to be, on your screenshot it shows "1.2K" but when i add the same function that flarum uses it just shows as "1K".
I guess this has to do it for now? /shrug (no shrug emoji smh)
MichaelBelgium What does it do when the count is bigger say 1600, does it show as 1.5K, 2K, or 1K? This is very unlikely, but maybe it's just rounding the number. ?
I'd still choose the abbreviated number even if it weren't accurate.
lorem It shows 1K and i expect 1.6K, but the function floors the result so it doesn't show anything after the comma. I left it as it is.
The update is live btw (package version 0.1.0-beta.7-3.3)
MichaelBelgium Going by the function you posted, we shouldn't have been expecting it to do that in the first place. It only abbreviates to integers, and rounds to floor instead of ceil at that. ?
Thank you, I've updated my installation to 7-3.3.
Updated for beta 8!
- Edited
MichaelBelgium Thanks <3 works fine.
MichaelBelgium Did you play SAMP by any chance? I saw your name somewhere lol
newbi3 Yes I did, I use this name everywhere online so you know it's me
collins Its probably just a border + replacing the icon ( :before
) with just text
- Edited
Thanks this work, check out my forum for viewing [Mod removed, use showcase tag for promoting website links.]