forked from forgejo/forgejo
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:
parent
51ab495198
commit
e460b6ef4d
2 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue