about summary refs log tree commit diff
path: root/app/javascript/styles/mastodon/containers.scss
diff options
context:
space:
mode:
authorSasha Sorokin <dafri.nochiterov8@gmail.com>2019-11-29 23:03:38 +0700
committerEugen Rochko <eugen@zeonfederated.com>2019-11-29 17:03:38 +0100
commitb532ead798c481fd03be9eb78e910d62654cdaa8 (patch)
treeff19cae146e1883c46036d4f3c6c03008dbe575d /app/javascript/styles/mastodon/containers.scss
parent6c2c2eee46f6e27c1309be9d27fd1c4fc426d0de (diff)
Fix counter sizing (#12446)
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.
Diffstat (limited to 'app/javascript/styles/mastodon/containers.scss')
-rw-r--r--app/javascript/styles/mastodon/containers.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/styles/mastodon/containers.scss b/app/javascript/styles/mastodon/containers.scss
index 319f8c94d..51d9b46b0 100644
--- a/app/javascript/styles/mastodon/containers.scss
+++ b/app/javascript/styles/mastodon/containers.scss
@@ -646,7 +646,7 @@
         }
 
         .counter {
-          width: 33.3%;
+          min-width: 33.3%;
           box-sizing: border-box;
           flex: 0 0 auto;
           color: $darker-text-color;