Commit 7e916a2
authored
fix(web): prevent toolbar button text wrapping for CJK languages (nexu-io#178)
Add white-space: nowrap to .viewer-action, .viewer-toggle, and .viewer-tab
to prevent Chinese/Japanese text from breaking to a new line when the
toolbar runs out of horizontal space. English text was unaffected because
browsers treat whole words as atomic units, but CJK characters can break
between any two characters by default.1 parent e268f1f commit 7e916a2
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3228 | 3228 | | |
3229 | 3229 | | |
3230 | 3230 | | |
| 3231 | + | |
3231 | 3232 | | |
3232 | 3233 | | |
3233 | 3234 | | |
| |||
3253 | 3254 | | |
3254 | 3255 | | |
3255 | 3256 | | |
| 3257 | + | |
3256 | 3258 | | |
3257 | 3259 | | |
3258 | 3260 | | |
| |||
3284 | 3286 | | |
3285 | 3287 | | |
3286 | 3288 | | |
| 3289 | + | |
3287 | 3290 | | |
3288 | 3291 | | |
3289 | 3292 | | |
| |||
0 commit comments