[FIX #4268] Broken message counter when having more than 999 messages
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
24d5fabe2e
commit
7fec1c82f5
|
@ -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"
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue