]> cat aescling's git repositories - mastodon.git/commitdiff
Fix counter sizing (#12446)
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Fri, 29 Nov 2019 16:03:38 +0000 (23:03 +0700)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 29 Nov 2019 16:03:38 +0000 (17:03 +0100)
Counter size is currently set to strict 33.3% width, but with it
counter may break in other languages than English. For example it is
already broken on Gargron's profile on mastodon.social using Russian
locale.

This commit changes "width" to "min-width", so counters still displayed
correctly, but if they need more width to fit text, they are now allowed
to take as many width as they need.

app/javascript/styles/mastodon/containers.scss

index 319f8c94dad549384f284442d8b3bf38975777fc..51d9b46b0f34fd0de7b7eba43c76b82710d75f6c 100644 (file)
         }
 
         .counter {
-          width: 33.3%;
+          min-width: 33.3%;
           box-sizing: border-box;
           flex: 0 0 auto;
           color: $darker-text-color;