mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-14 17:35:50 +01:00
fix long file name text-overflow
This commit is contained in:
@@ -106,6 +106,7 @@
|
|||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
<td class="content-name">
|
<td class="content-name">
|
||||||
|
<span class="content-name-truncate">
|
||||||
@if(file.isDirectory){
|
@if(file.isDirectory){
|
||||||
@if(file.linkUrl.isDefined){
|
@if(file.linkUrl.isDefined){
|
||||||
<a href="@file.linkUrl">
|
<a href="@file.linkUrl">
|
||||||
@@ -125,6 +126,7 @@
|
|||||||
} else {
|
} else {
|
||||||
<a href="@url(repository)/blob@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">@file.name</a>
|
<a href="@url(repository)/blob@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">@file.name</a>
|
||||||
}
|
}
|
||||||
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="mute">
|
<td class="mute">
|
||||||
<a href="@url(repository)/commit/@file.commitId" class="commit-message shorten-text" title="@file.message">@link(file.message, repository)</a>
|
<a href="@url(repository)/commit/@file.commitId" class="commit-message shorten-text" title="@file.message">@link(file.message, repository)</a>
|
||||||
|
|||||||
@@ -831,6 +831,12 @@ table.table-file-list .content-name {
|
|||||||
max-width: 180px;
|
max-width: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.table-file-list .content-name .content-name-truncate {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
table.table-file-list .commit-message {
|
table.table-file-list .commit-message {
|
||||||
max-width: 415px;
|
max-width: 415px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
Reference in New Issue
Block a user