diff options
| author | Michael Howell <michael@notriddle.com> | 2022-12-20 10:32:35 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-12-20 10:32:35 -0700 |
| commit | 168e3da8126f78d213e17de7fb548a9bf76ee393 (patch) | |
| tree | d2bf7833609e36e438f5e538e624bc247eb7b413 /src/librustdoc/html/static | |
| parent | 8a746f4ac3a489efb724cde813607f3b96c2df7b (diff) | |
| download | rust-168e3da8126f78d213e17de7fb548a9bf76ee393.tar.gz rust-168e3da8126f78d213e17de7fb548a9bf76ee393.zip | |
rustdoc: prevent CSS layout of line numbers shrinking into nothing
Diffstat (limited to 'src/librustdoc/html/static')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 11e34a3fc7d..055a5665cf0 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -543,6 +543,7 @@ ul.block, .block li { .rustdoc .example-wrap > pre.example-line-numbers, .rustdoc .example-wrap > pre.src-line-numbers { flex-grow: 0; + min-width: fit-content; /* prevent collapsing into nothing in truncated scraped examples */ overflow: initial; text-align: right; -webkit-user-select: none; |
