Commit 7a51adf
committed
Allow source link to wrap onto next line
Like the out-of-band information at the top of the page, this uses
flex-wrap: wrap to allow `source` to move to the next line when space is
tight. Also, on mobile layouts move it to the next line always, for a
more consistent interface.
This allows more of the method signature to be displayed on a single
line, and avoids confusing `source` with one of the items in the method
signature.
Also tweak the padding on summary items slightly so they line up
properly with their docblock.1 parent bb8c2f4 commit 7a51adf
File tree
4 files changed
+16
-27
lines changed- src
- librustdoc/html
- render
- static/css
- test/rustdoc-gui
4 files changed
+16
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1403 | 1403 | | |
1404 | 1404 | | |
1405 | 1405 | | |
1406 | | - | |
1407 | 1406 | | |
1408 | 1407 | | |
1409 | 1408 | | |
| |||
1415 | 1414 | | |
1416 | 1415 | | |
1417 | 1416 | | |
| 1417 | + | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
| |||
1426 | 1426 | | |
1427 | 1427 | | |
1428 | 1428 | | |
1429 | | - | |
1430 | 1429 | | |
1431 | 1430 | | |
1432 | 1431 | | |
| |||
1443 | 1442 | | |
1444 | 1443 | | |
1445 | 1444 | | |
| 1445 | + | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | | - | |
1702 | 1701 | | |
1703 | 1702 | | |
1704 | 1703 | | |
| |||
1726 | 1725 | | |
1727 | 1726 | | |
1728 | 1727 | | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1729 | 1731 | | |
1730 | 1732 | | |
1731 | 1733 | | |
1732 | 1734 | | |
1733 | 1735 | | |
1734 | 1736 | | |
1735 | 1737 | | |
1736 | | - | |
1737 | | - | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
| |||
621 | 619 | | |
622 | 620 | | |
623 | 621 | | |
624 | | - | |
625 | 622 | | |
626 | 623 | | |
627 | 624 | | |
| |||
1083 | 1080 | | |
1084 | 1081 | | |
1085 | 1082 | | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | 1083 | | |
1093 | 1084 | | |
1094 | 1085 | | |
1095 | 1086 | | |
1096 | 1087 | | |
1097 | 1088 | | |
1098 | | - | |
1099 | | - | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1100 | 1096 | | |
1101 | 1097 | | |
1102 | 1098 | | |
| |||
1713 | 1709 | | |
1714 | 1710 | | |
1715 | 1711 | | |
1716 | | - | |
| 1712 | + | |
| 1713 | + | |
1717 | 1714 | | |
1718 | 1715 | | |
1719 | 1716 | | |
| |||
1854 | 1851 | | |
1855 | 1852 | | |
1856 | 1853 | | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | 1854 | | |
1864 | 1855 | | |
1865 | 1856 | | |
| |||
1959 | 1950 | | |
1960 | 1951 | | |
1961 | 1952 | | |
1962 | | - | |
| 1953 | + | |
1963 | 1954 | | |
1964 | 1955 | | |
1965 | 1956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
0 commit comments