Skip to content

Commit d2f96a9

Browse files
Rollup merge of #81630 - GuillaumeGomez:overflow-sidebar-title-text, r=pickfire
Fix overflowing text on mobile when sidebar is displayed Fixes #81597. Before: ![Screenshot from 2021-02-01 17-21-15](https://user-images.githubusercontent.com/3050060/106486857-610b0300-64b2-11eb-96d3-12b939f5b661.png) After: ![Screenshot from 2021-02-01 17-20-59](https://user-images.githubusercontent.com/3050060/106486840-5cdee580-64b2-11eb-9492-4df27bb39e59.png) cc `@pickfire` r? `@Nemo157`
2 parents 285524f + 899b0dd commit d2f96a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+8
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,14 @@ h4 > .notable-traits {
14901490
background-color: rgba(0,0,0,0);
14911491
height: 100%;
14921492
}
1493+
/*
1494+
This allows to prevent the version text to overflow the sidebar title on mobile mode when the
1495+
sidebar is displayed (after clicking on the "hamburger" button).
1496+
*/
1497+
.sidebar.mobile > div.version {
1498+
overflow: hidden;
1499+
max-height: 33px;
1500+
}
14931501
.sidebar {
14941502
width: calc(100% + 30px);
14951503
}

0 commit comments

Comments
 (0)