diff options
| author | binarycat <binarycat@envs.net> | 2025-04-14 19:01:38 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-05-16 04:53:02 -0500 |
| commit | 5326fc9bc78ca44e04d4583a8ced3a23768815e6 (patch) | |
| tree | 3e38e610a886c2c1271ae30b64aa682167a0218b | |
| parent | c79bbfab78dcb0a72aa3b2bc35c00334b58bfe2e (diff) | |
| download | rust-5326fc9bc78ca44e04d4583a8ced3a23768815e6.tar.gz rust-5326fc9bc78ca44e04d4583a8ced3a23768815e6.zip | |
rustdoc: on mobile, make the sidebar full width and linewrap
this is because the mobile sidebar cannot be resized, unlike on desktop.
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index a81d5c9c49b..7be83b65fbf 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -2527,9 +2527,12 @@ in src-script.js and main.js z-index: 11; /* Reduce height slightly to account for mobile topbar. */ height: calc(100vh - 45px); - width: 200px; /* resize indicator: hide this when on touch or mobile */ border-right: none; + width: 100%; + } + .sidebar-elems .block li a { + white-space: wrap; } /* The source view uses a different design for the sidebar toggle, and doesn't have a topbar, |
