Skip to content

Commit 899b0dd

Browse files
Fix overflowing text on mobile when sidebar is displayed
1 parent a2f8f62 commit 899b0dd

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
@@ -1489,6 +1489,14 @@ h4 > .notable-traits {
14891489
background-color: rgba(0,0,0,0);
14901490
height: 100%;
14911491
}
1492+
/*
1493+
This allows to prevent the version text to overflow the sidebar title on mobile mode when the
1494+
sidebar is displayed (after clicking on the "hamburger" button).
1495+
*/
1496+
.sidebar.mobile > div.version {
1497+
overflow: hidden;
1498+
max-height: 33px;
1499+
}
14921500
.sidebar {
14931501
width: calc(100% + 30px);
14941502
}

0 commit comments

Comments
 (0)