File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/librustdoc/html/static/css Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -387,8 +387,7 @@ img {
387
387
388
388
.sidebar {
389
389
font-size : 0.875rem ;
390
- width : 200px ;
391
- min-width : 200px ;
390
+ flex : 0 0 200px ;
392
391
overflow-y : scroll;
393
392
position : sticky;
394
393
height : 100vh ;
@@ -397,12 +396,7 @@ img {
397
396
}
398
397
399
398
.rustdoc .source .sidebar {
400
- width : 50px ;
401
- min-width : 0px ;
402
- max-width : 300px ;
403
- flex-grow : 0 ;
404
- flex-shrink : 0 ;
405
- flex-basis : auto;
399
+ flex-basis : 50px ;
406
400
border-right : 1px solid;
407
401
overflow-x : hidden;
408
402
/* The sidebar is by default hidden */
@@ -423,7 +417,7 @@ img {
423
417
424
418
.source-sidebar-expanded .source .sidebar {
425
419
overflow-y : auto;
426
- width : 300px ;
420
+ flex-basis : 300px ;
427
421
}
428
422
429
423
.source-sidebar-expanded .source .sidebar > * : not (# sidebar-toggle ) {
@@ -1702,6 +1696,7 @@ in storage.js
1702
1696
z-index : 11 ;
1703
1697
/* Reduce height slightly to account for mobile topbar. */
1704
1698
height : calc (100vh - 45px );
1699
+ width : 200px ;
1705
1700
}
1706
1701
1707
1702
/* The source view uses a different design for the sidebar toggle, and doesn't have a topbar,
You can’t perform that action at this time.
0 commit comments