diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-12-06 12:48:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 12:48:50 +0900 |
| commit | 532fe7b8e043115477e33ad0d97dfe9469a2c236 (patch) | |
| tree | a402973ea173ff2d1ffa97bc159cd764102b08ee /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 226202d9026b0f24b4f7aad4de398bd8378774cd (diff) | |
| parent | f7a705929aa3f40ff5c3b1e569858a7030b2e3bd (diff) | |
| download | rust-532fe7b8e043115477e33ad0d97dfe9469a2c236.tar.gz rust-532fe7b8e043115477e33ad0d97dfe9469a2c236.zip | |
Rollup merge of #104967 - willcrichton:fix-scrape-examples, r=notriddle
Fix UI issues with Rustdoc scrape-examples feature. A few regressions have been introduced into scrape-examples in the last few months. This commit fixes those regressions: * Help file was being loaded from the wrong place (introduced in f9e1f6ffdf03ec33cb29e20c88fc7bcc938c7f42). * CSS selector in JS has a typo (introduced in 14897180ae6a0506a5ad0a9f6a30ae1f75916179). * Line numbers in scraped example code snippets are overflowing (not sure if this was ever fixed). Changing from flexbox to grid display fixed this issue.
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index f44797fe55f..3d7694e2dc8 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1978,7 +1978,9 @@ in storage.js } .scraped-example .code-wrapper .example-wrap { - flex: 1; + display: grid; + grid-template-columns: max-content auto; + width: 100%; overflow-x: auto; overflow-y: hidden; margin-bottom: 0; |
