|
1611 | 1611 | padding: 7px 0; |
1612 | 1612 | background: var(--color-body); |
1613 | 1613 | line-height: 30px; |
1614 | | - height: 47px; /* match .ui.attached.header.diff-file-header.sticky-2nd-row */ |
1615 | 1614 | } |
1616 | 1615 |
|
1617 | 1616 | @media (max-width: 991px) { |
1618 | 1617 | .repository .diff-detail-box { |
1619 | 1618 | flex-direction: column; |
1620 | 1619 | align-items: flex-start; |
1621 | | - height: 77px; /* match .ui.attached.header.diff-file-header.sticky-2nd-row */ |
1622 | 1620 | } |
1623 | 1621 | } |
1624 | 1622 |
|
|
1674 | 1672 | } |
1675 | 1673 | } |
1676 | 1674 |
|
| 1675 | +.diff-detail-actions { |
| 1676 | + /* prevent font-size from increasing element height so that .diff-detail-box comes |
| 1677 | + out with height of 47px (one line) and 77px (two lines), which is important for |
| 1678 | + position: sticky */ |
| 1679 | + height: 33px; |
| 1680 | +} |
| 1681 | + |
1677 | 1682 | .repository .diff-detail-box .diff-detail-actions > * { |
1678 | 1683 | margin-right: 0; |
1679 | 1684 | } |
|
1848 | 1853 | padding-bottom: 5px; |
1849 | 1854 | } |
1850 | 1855 |
|
| 1856 | +.diff-file-box { |
| 1857 | + border: 1px solid transparent; |
| 1858 | + border-radius: var(--border-radius); |
| 1859 | +} |
| 1860 | + |
| 1861 | +/* TODO: this can potentially be made "global" by removing the class prefix */ |
| 1862 | +.diff-file-box .ui.attached.header, |
| 1863 | +.diff-file-box .ui.attached.table { |
| 1864 | + margin: 0; /* remove fomantic negative margins */; |
| 1865 | + width: initial; /* remove fomantic over 100% width */; |
| 1866 | + max-width: initial; /* remove fomantic over 100% width */; |
| 1867 | +} |
| 1868 | + |
1851 | 1869 | .repository .diff-stats { |
1852 | 1870 | clear: both; |
1853 | 1871 | margin-bottom: 5px; |
1854 | | - max-height: 400px; |
| 1872 | + max-height: 200px; |
| 1873 | + height: fit-content; |
1855 | 1874 | overflow: auto; |
1856 | 1875 | padding-left: 0; |
1857 | 1876 | } |
|
2647 | 2666 | filter: drop-shadow(-3px 0 0 var(--color-primary-alpha-30)) !important; |
2648 | 2667 | } |
2649 | 2668 |
|
2650 | | -.code-comment:target { |
| 2669 | +.code-comment:target, |
| 2670 | +.diff-file-box:target { |
2651 | 2671 | border-color: var(--color-primary) !important; |
2652 | 2672 | border-radius: var(--border-radius) !important; |
2653 | 2673 | box-shadow: 0 0 0 3px var(--color-primary-alpha-30) !important; |
@@ -3238,13 +3258,13 @@ td.blob-excerpt { |
3238 | 3258 | } |
3239 | 3259 |
|
3240 | 3260 | #diff-file-tree { |
3241 | | - width: 20%; |
| 3261 | + flex: 0 0 20%; |
3242 | 3262 | max-width: 380px; |
3243 | 3263 | line-height: inherit; |
3244 | 3264 | position: sticky; |
3245 | 3265 | padding-top: 0; |
3246 | 3266 | top: 47px; |
3247 | | - max-height: calc(100vh - 50px); |
| 3267 | + max-height: calc(100vh - 47px); |
3248 | 3268 | height: 100%; |
3249 | 3269 | overflow-y: auto; |
3250 | 3270 | } |
|
0 commit comments