mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
Fix PR file tree folders no longer collapsing (#22864)
Collapsing folders currently just throws a console error ``` index.js?v=1.19.0~dev-403-gb6b8feb3d:10 TypeError: this.$set is not a function at Proxy.handleClick (index.js?v=1.19.0~dev-403-gb6b8feb3d:58:7159) at index.js?v=1.19.0~dev-403-gb6b8feb3d:58:6466 at index.js?v=1.19.0~dev-403-gb6b8feb3d:10:93922 at ce (index.js?v=1.19.0~dev-403-gb6b8feb3d:10:1472) at Q (index.js?v=1.19.0~dev-403-gb6b8feb3d:10:1567) at HTMLDivElement.$e (index.js?v=1.19.0~dev-403-gb6b8feb3d:10:79198) ``` This PR fixes this and allows folders to be collapsed again. Also: - better cursor interaction with folders - added some color to the diff detail stats - remove green link color from all the file names Screenshots:   --------- Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -1614,6 +1614,20 @@
|
||||
margin-right: .25rem;
|
||||
}
|
||||
|
||||
// Because the translations contain the <strong> we need to style with nth-of-type
|
||||
|
||||
.diff-detail-stats strong:nth-of-type(1) {
|
||||
color: var(--color-yellow);
|
||||
}
|
||||
|
||||
.diff-detail-stats strong:nth-of-type(2) {
|
||||
color: var(--color-green);
|
||||
}
|
||||
|
||||
.diff-detail-stats strong:nth-of-type(3) {
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
.diff-detail-stats {
|
||||
@media (max-width: 480px) {
|
||||
font-size: 0;
|
||||
|
Reference in New Issue
Block a user