File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 14
14
{{$entry := $item.Entry}}
15
15
{{$commit := $item.Commit}}
16
16
{{$submoduleFile := $item.SubmoduleFile}}
17
- <div class="repo-file-cell name {{if not $commit}}notready{{end}}">
17
+ <div class="repo-file-cell name muted-links {{if not $commit}}notready{{end}}">
18
18
{{ctx.RenderUtils.RenderFileIcon $entry}}
19
19
{{if $entry.IsSubModule}}
20
20
{{$submoduleLink := $submoduleFile.SubmoduleWebLink ctx}}
21
21
{{if $submoduleLink}}
22
- <a class="muted" href="{{$submoduleLink.RepoWebLink}}">{{$entry.Name}}</a> <span class="at">@</span> <a href="{{$submoduleLink.CommitWebLink}}">{{ShortSha $submoduleFile.RefID}}</a>
22
+ <a class="entry-name" href="{{$submoduleLink.RepoWebLink}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
23
+ @ <a class="text primary" href="{{$submoduleLink.CommitWebLink}}">{{ShortSha $submoduleFile.RefID}}</a>
23
24
{{else}}
24
- {{$entry.Name}} <span class="at">@</span> {{ShortSha $submoduleFile.RefID}}
25
+ <span class="entry-name" title="{{$entry.Name}}">{{$entry.Name}}</span>
26
+ @ {{ShortSha $submoduleFile.RefID}}
25
27
{{end}}
26
28
{{else}}
27
29
{{if $entry.IsDir}}
28
30
{{$subJumpablePathName := $entry.GetSubJumpablePathName}}
29
- <a class="muted " href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}">
31
+ <a class="entry-name " href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}">
30
32
{{$subJumpablePathFields := StringUtils.Split $subJumpablePathName "/"}}
31
33
{{$subJumpablePathFieldLast := (Eval (len $subJumpablePathFields) "-" 1)}}
32
34
{{if eq $subJumpablePathFieldLast 0}}
37
39
{{end}}
38
40
</a>
39
41
{{else}}
40
- <a class="muted " href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
42
+ <a class="entry-name " href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
41
43
{{end}}
42
44
{{end}}
43
45
</div>
Original file line number Diff line number Diff line change 14
14
}
15
15
}
16
16
17
- # repo-files-table .repo-file-cell .name .svg {
18
- margin-right : 2px ;
19
- }
20
-
21
17
# repo-files-table .svg .octicon-file-directory-fill ,
22
18
# repo-files-table .svg .octicon-file-submodule {
23
19
color : var (--color-primary );
70
66
}
71
67
72
68
# repo-files-table .repo-file-cell .name {
69
+ display : flex;
70
+ align-items : center;
71
+ gap : 0.5em ;
72
+ overflow : hidden;
73
+ }
74
+
75
+ # repo-files-table .repo-file-cell .name > a ,
76
+ # repo-files-table .repo-file-cell .name > span {
77
+ flex-shrink : 0 ;
73
78
white-space : nowrap;
74
79
overflow : hidden;
75
80
text-overflow : ellipsis;
76
81
}
77
82
83
+ # repo-files-table .repo-file-cell .name .entry-name {
84
+ flex-shrink : 1 ;
85
+ min-width : 3em ;
86
+ }
87
+
78
88
@media (max-width : 767.98px ) {
79
89
# repo-files-table .repo-file-cell .name {
80
90
max-width : 35vw ;
You can’t perform that action at this time.
0 commit comments