[FIX #4268] Broken message counter when having more than 999 messages

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Daniel Regeci 2018-05-17 18:52:06 +07:00 committed by Andrey Shovkoplyas
parent 24d5fabe2e
commit 7fec1c82f5
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 2 additions and 1 deletions

View File

@ -237,6 +237,7 @@
:set-a-topic "Set a topic"
:empty-chat-description "There are no messages \nin this chat yet"
:empty-chat-description-console "Look under the hood! Console is a javascript runtime environment that exposes the whole web3 API. Type \"web3.\" to get started."
:counter-99-plus "99+"
;;discover
:discover "Discover"

View File

@ -86,7 +86,7 @@
[react/text (cond-> {:style (styles/counter-label size)}
accessibility-label
(assoc :accessibility-label accessibility-label))
value]]))
(if (<= value 99) value (i18n/label :t/counter-99-plus))]]))
(defn image-contain [_ _]
(let [content-width (reagent/atom 0)]