File tree 1 file changed +4
-9
lines changed
src/librustdoc/html/static/css
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -384,8 +384,7 @@ img {
384
384
385
385
.sidebar {
386
386
font-size : 0.875rem ;
387
- width : 200px ;
388
- min-width : 200px ;
387
+ flex : 0 0 200px ;
389
388
overflow-y : scroll;
390
389
position : sticky;
391
390
height : 100vh ;
@@ -394,12 +393,7 @@ img {
394
393
}
395
394
396
395
.rustdoc .source .sidebar {
397
- width : 50px ;
398
- min-width : 0px ;
399
- max-width : 300px ;
400
- flex-grow : 0 ;
401
- flex-shrink : 0 ;
402
- flex-basis : auto;
396
+ flex-basis : 50px ;
403
397
border-right : 1px solid;
404
398
overflow-x : hidden;
405
399
/* The sidebar is by default hidden */
@@ -420,7 +414,7 @@ img {
420
414
421
415
.source-sidebar-expanded .source .sidebar {
422
416
overflow-y : auto;
423
- width : 300px ;
417
+ flex-basis : 300px ;
424
418
}
425
419
426
420
.source-sidebar-expanded .source .sidebar > * : not (# sidebar-toggle ) {
@@ -1699,6 +1693,7 @@ in storage.js
1699
1693
z-index : 11 ;
1700
1694
/* Reduce height slightly to account for mobile topbar. */
1701
1695
height : calc (100vh - 45px );
1696
+ width : 200px ;
1702
1697
}
1703
1698
1704
1699
/* 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