fix(kimi-web): disable text hyphenation and code ligatures (#1438)

Set hyphens: none (with the -webkit- prefix) on body so chat and markdown text never gain a hyphen glyph at a line break; components still control where lines wrap via word-break/overflow-wrap.

Disable the ligatures that coding fonts enable by default (liga/calt/ss01) on native code elements so code renders literally, e.g. != stays as two characters.
This commit is contained in:
qer 2026-07-06 22:12:43 +08:00 committed by GitHub
parent 0824e7b668
commit d86fa38e11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---
web: Prevent chat text from hyphenating at line breaks and render code without font ligatures.