diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-01-24 20:19:09 -0800 |
|---|---|---|
| committer | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-01-24 20:19:09 -0800 |
| commit | abffd4af08ac3bc4ab91cfc83ad3055529e63d57 (patch) | |
| tree | 84c0413ef62e4824edefa5873727ad8aac5924fb /src/librustdoc/html/static/css/rustdoc.css | |
| parent | e7825f2b690c9a0d21b6f6d84c404bb53b151b38 (diff) | |
| download | rust-abffd4af08ac3bc4ab91cfc83ad3055529e63d57.tar.gz rust-abffd4af08ac3bc4ab91cfc83ad3055529e63d57.zip | |
Add white-space: nowrap to links in the sidebar
We already have overflow: hidden on these links, but if there is a possibility to wrap, they will wrap. This happens in particular for trait implementations because the punctuation (`<>, `) introduces opportunities for breaks. That produces inconsistent UI. Fix it by forcing them not to wrap.
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 645c0aba6ac..4c79218f62a 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -484,6 +484,10 @@ nav.sub { overflow: hidden; } +.sidebar-links a { + white-space: nowrap; +} + .sidebar h2 { border-bottom: none; font-weight: 500; |
