Skip to content

Commit a7d095d

Browse files
committed
fix
1 parent 98f893d commit a7d095d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

templates/repo/view_list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
{{if $entry.IsSubModule}}
2020
{{$submoduleLink := $submoduleFile.SubmoduleWebLink ctx}}
2121
{{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="muted" href="{{$submoduleLink.RepoWebLink}}" title="{{$entry.Name}}">{{$entry.Name}}</a> <span class="at">@</span> <a href="{{$submoduleLink.CommitWebLink}}">{{ShortSha $submoduleFile.RefID}}</a>
2323
{{else}}
24-
{{$entry.Name}} <span class="at">@</span> {{ShortSha $submoduleFile.RefID}}
24+
<span class="muted" title="{{$entry.Name}}">{{$entry.Name}}</span> <span class="at">@</span> {{ShortSha $submoduleFile.RefID}}
2525
{{end}}
2626
{{else}}
2727
{{if $entry.IsDir}}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,20 @@
6969
display: flex;
7070
align-items: center;
7171
gap: 0.5em;
72+
overflow: hidden;
73+
}
74+
75+
#repo-files-table .repo-file-cell.name >* {
76+
flex-shrink: 0;
7277
white-space: nowrap;
7378
overflow: hidden;
7479
text-overflow: ellipsis;
7580
}
7681

82+
#repo-files-table .repo-file-cell.name .muted {
83+
flex-shrink: 1;
84+
}
85+
7786
@media (max-width: 767.98px) {
7887
#repo-files-table .repo-file-cell.name {
7988
max-width: 35vw;

0 commit comments

Comments
 (0)