Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fixes button labels being collapsed per a character in CJK languages (#…
Browse files Browse the repository at this point in the history
…8212)

* Fixes button labels being collapsed per a character in CJK languages

Closes element-hq/element-web#21287

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Add a comment

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul authored Apr 9, 2022
1 parent cdb0c2c commit 61076c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions res/css/views/elements/_AccessibleButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ limitations under the License.
justify-content: center;
font-size: $font-14px;
border: none; // override default <button /> styles
word-break: keep-all; // prevent button text in Chinese/Japanese/Korean (CJK) from being collapsed

&.mx_AccessibleButton_kind_primary_sm,
&.mx_AccessibleButton_kind_danger_sm,
Expand Down

0 comments on commit 61076c3

Please sign in to comment.