Prevent CJK text from breaking in switch label in the popup

`.switch label` shrink-fits its content, and CJK text can break between
characters.

An alternative idea is using `width: max-content`.

Fixed #466.
This commit is contained in:
Ting-Yu Lin 2020-11-25 14:20:34 -08:00
parent cde3271386
commit 0e983d021d

View File

@ -82,6 +82,7 @@ input:checked + .slider:before {
.switch label { .switch label {
position: absolute; position: absolute;
left: 60px; left: 60px;
word-break: keep-all;
} }
label { label {