From 0e983d021d7ca7fcacf6b5ed56387ea73da6f172 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Wed, 25 Nov 2020 14:20:34 -0800 Subject: [PATCH] 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. --- css/switchButtons.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/switchButtons.css b/css/switchButtons.css index 84e0a38..8e61c76 100644 --- a/css/switchButtons.css +++ b/css/switchButtons.css @@ -82,6 +82,7 @@ input:checked + .slider:before { .switch label { position: absolute; left: 60px; + word-break: keep-all; } label {