Skip to content

Commit 28ab1cf

Browse files
committed
fix
1 parent 0097dd0 commit 28ab1cf

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

templates/repo/view_list.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
{{if $entry.IsSubModule}}
2020
{{$submoduleLink := $submoduleFile.SubmoduleWebLink ctx}}
2121
{{if $submoduleLink}}
22-
<a class="muted" href="{{$submoduleLink.RepoWebLink}}" title="{{$entry.Name}}">{{$entry.Name}}</a> <span class="at">@</span> <a href="{{$submoduleLink.CommitWebLink}}">{{ShortSha $submoduleFile.RefID}}</a>
22+
<a class="muted name" href="{{$submoduleLink.RepoWebLink}}" title="{{$entry.Name}}">{{$entry.Name}}</a> <span class="at">@</span> <a href="{{$submoduleLink.CommitWebLink}}">{{ShortSha $submoduleFile.RefID}}</a>
2323
{{else}}
24-
<span class="muted" title="{{$entry.Name}}">{{$entry.Name}}</span> <span class="at">@</span> {{ShortSha $submoduleFile.RefID}}
24+
<span class="muted name" title="{{$entry.Name}}">{{$entry.Name}}</span> <span class="at">@</span> {{ShortSha $submoduleFile.RefID}}
2525
{{end}}
2626
{{else}}
2727
{{if $entry.IsDir}}
2828
{{$subJumpablePathName := $entry.GetSubJumpablePathName}}
29-
<a class="muted" href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}">
29+
<a class="muted name" href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}">
3030
{{$subJumpablePathFields := StringUtils.Split $subJumpablePathName "/"}}
3131
{{$subJumpablePathFieldLast := (Eval (len $subJumpablePathFields) "-" 1)}}
3232
{{if eq $subJumpablePathFieldLast 0}}
@@ -37,7 +37,7 @@
3737
{{end}}
3838
</a>
3939
{{else}}
40-
<a class="muted" href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
40+
<a class="muted name" href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
4141
{{end}}
4242
{{end}}
4343
</div>

web_src/css/repo/home-file-list.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,18 @@
7272
overflow: hidden;
7373
}
7474

75-
#repo-files-table .repo-file-cell.name >* {
75+
#repo-files-table .repo-file-cell.name > a,
76+
#repo-files-table .repo-file-cell.name > svg,
77+
#repo-files-table .repo-file-cell.name > span {
7678
flex-shrink: 0;
7779
white-space: nowrap;
7880
overflow: hidden;
7981
text-overflow: ellipsis;
8082
}
8183

82-
#repo-files-table .repo-file-cell.name .muted {
84+
#repo-files-table .repo-file-cell.name .name {
8385
flex-shrink: 1;
86+
min-width: 3em;
8487
}
8588

8689
@media (max-width: 767.98px) {

0 commit comments

Comments
 (0)