Skip to content

Commit d6d1ef8

Browse files
yp05327GiteaBot
authored andcommitted
Fix word overflow in file search page (go-gitea#32695)
1 parent 4b73e92 commit d6d1ef8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/repo/find/files.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<input id="repo-file-find-input" type="text" autofocus data-url-data-link="{{.DataLink}}" data-url-tree-link="{{.TreeLink}}">
1010
</div>
1111
</div>
12-
<table id="repo-find-file-table" class="ui single line table">
12+
<table id="repo-find-file-table" class="ui single line fixed table">
1313
<tbody>
1414
</tbody>
1515
</table>

web_src/js/features/repo-findfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function filterRepoFiles(filter) {
9090
const span = document.createElement('span');
9191
// safely escape by using textContent
9292
span.textContent = part;
93+
span.title = span.textContent;
9394
// if the target file path is "abc/xyz", to search "bx", then the matchResult is ['a', 'b', 'c/', 'x', 'yz']
9495
// the matchResult[odd] is matched and highlighted to red.
9596
if (index % 2 === 1) span.classList.add('ui', 'text', 'red');

0 commit comments

Comments
 (0)