Fix code wrap for unbroken lines (#23268)

## The Problem

`overflow-wrap: break-word` doesn't work well for unbroken lines. Use
`overflow-wrap: anywhere` instead, and remove legacy alias `word-wrap`

## Before


![image](https://user-images.githubusercontent.com/2114189/222743939-5f38d9e4-18d8-4ae0-8078-4b3a59195a30.png)

## After


![image](https://user-images.githubusercontent.com/2114189/222743833-0e0cfdbb-7b2e-420d-99f9-b1b45dde521a.png)

---------

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
wxiaoguang 2023-03-04 12:48:59 +08:00 committed by GitHub
parent 47bb5f11cb
commit 787a05a3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2121,8 +2121,7 @@ a.ui.label:hover {
font: 12px var(--fonts-monospace); font: 12px var(--fonts-monospace);
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-all; word-break: break-all;
overflow-wrap: break-word; overflow-wrap: anywhere;
word-wrap: break-word;
} }
.blame .code-inner { .blame .code-inner {