File tree 2 files changed +2
-7
lines changed
src/librustdoc/html/static
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1943,13 +1943,8 @@ in src-script.js and main.js
1943
1943
pixels to avoid overflowing the topbar when the user sets a bigger
1944
1944
font size. */
1945
1945
font-size : 24px ;
1946
- }
1947
-
1948
- .mobile-topbar h2 a {
1949
- display : block;
1950
- text-overflow : ellipsis;
1951
- overflow : hidden;
1952
1946
white-space : nowrap;
1947
+ text-overflow : ellipsis;
1953
1948
}
1954
1949
1955
1950
.mobile-topbar .logo-container > img {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function setMobileTopbar() {
45
45
const mobileTitle = document . createElement ( "h2" ) ;
46
46
mobileTitle . className = "location" ;
47
47
if ( hasClass ( document . querySelector ( ".rustdoc" ) , "crate" ) ) {
48
- mobileTitle . innerText = `Crate ${ window . currentCrate } ` ;
48
+ mobileTitle . innerHTML = `Crate <a href="#"> ${ window . currentCrate } </a> ` ;
49
49
} else if ( locationTitle ) {
50
50
mobileTitle . innerHTML = locationTitle . innerHTML ;
51
51
}
You can’t perform that action at this time.
0 commit comments