Skip to content

Commit 4591de1

Browse files
committed
fix styles
1 parent 28ab1cf commit 4591de1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

templates/repo/view_list.tmpl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@
1414
{{$entry := $item.Entry}}
1515
{{$commit := $item.Commit}}
1616
{{$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}}">
1818
{{ctx.RenderUtils.RenderFileIcon $entry}}
1919
{{if $entry.IsSubModule}}
2020
{{$submoduleLink := $submoduleFile.SubmoduleWebLink ctx}}
2121
{{if $submoduleLink}}
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>
22+
<a class="entry-name" href="{{$submoduleLink.RepoWebLink}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
23+
<span class="at">@</span>
24+
<a href="{{$submoduleLink.CommitWebLink}}">{{ShortSha $submoduleFile.RefID}}</a>
2325
{{else}}
24-
<span class="muted name" title="{{$entry.Name}}">{{$entry.Name}}</span> <span class="at">@</span> {{ShortSha $submoduleFile.RefID}}
26+
<span class="entry-name" title="{{$entry.Name}}">{{$entry.Name}}</span>
27+
<span class="at">@</span>
28+
{{ShortSha $submoduleFile.RefID}}
2529
{{end}}
2630
{{else}}
2731
{{if $entry.IsDir}}
2832
{{$subJumpablePathName := $entry.GetSubJumpablePathName}}
29-
<a class="muted name" href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}">
33+
<a class="entry-name" href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}">
3034
{{$subJumpablePathFields := StringUtils.Split $subJumpablePathName "/"}}
3135
{{$subJumpablePathFieldLast := (Eval (len $subJumpablePathFields) "-" 1)}}
3236
{{if eq $subJumpablePathFieldLast 0}}
@@ -37,7 +41,7 @@
3741
{{end}}
3842
</a>
3943
{{else}}
40-
<a class="muted name" href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
44+
<a class="entry-name" href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
4145
{{end}}
4246
{{end}}
4347
</div>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,14 @@
7373
}
7474

7575
#repo-files-table .repo-file-cell.name > a,
76-
#repo-files-table .repo-file-cell.name > svg,
7776
#repo-files-table .repo-file-cell.name > span {
7877
flex-shrink: 0;
7978
white-space: nowrap;
8079
overflow: hidden;
8180
text-overflow: ellipsis;
8281
}
8382

84-
#repo-files-table .repo-file-cell.name .name {
83+
#repo-files-table .repo-file-cell.name .entry-name {
8584
flex-shrink: 1;
8685
min-width: 3em;
8786
}

0 commit comments

Comments
 (0)