Skip to content

Commit

Permalink
Fix counter sizing (mastodon#12446)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brawaru authored and Gargron committed Nov 29, 2019
1 parent 6c2c2ee commit b532ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon/containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
}

.counter {
width: 33.3%;
min-width: 33.3%;
box-sizing: border-box;
flex: 0 0 auto;
color: $darker-text-color;
Expand Down

0 comments on commit b532ead

Please sign in to comment.