]> cat aescling's git repositories - mastodon.git/commitdiff
Fix trending counter width (#11569)
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Thu, 15 Aug 2019 18:20:02 +0000 (01:20 +0700)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 15 Aug 2019 18:20:02 +0000 (20:20 +0200)
Trending counter used to be constant 100px in width, which caused
issues in languages like Russian, where because of that, "talking"
text was cut to the size where actual count is not visible at all:

> 6 people talking
> Популярно у...

app/javascript/styles/mastodon/components.scss

index 893be9095098c3e2b54f5999ea81fd6968271308..7f0bf9fed37931dec8fe897ce39cbec680b44c5b 100644 (file)
@@ -6059,12 +6059,12 @@ noscript {
 
     &__current {
       flex: 0 0 auto;
-      width: 100px;
       font-size: 24px;
       line-height: 36px;
       font-weight: 500;
       text-align: right;
       padding-right: 15px;
+      margin-left: 5px;
       color: $secondary-text-color;
     }