diff options
author | Kyle D <kdumontnu@gmail.com> | 2023-10-09 19:04:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 19:04:31 -0400 |
commit | ac4ae355429e4f06161a7cfba537a5b105b516f0 (patch) | |
tree | cfa712aed6b829b7f3ad9b176ff8f291a651ec4d /templates/repo/issue/view_content/sidebar.tmpl | |
parent | e2e0280108cd0cfa4aaa7a875b2c81f17b1352e1 (diff) | |
download | gitea-ac4ae355429e4f06161a7cfba537a5b105b516f0.tar.gz gitea-ac4ae355429e4f06161a7cfba537a5b105b516f0.zip |
Remove max-width and add hide text overflow (#27359)
Closes https://github.com/go-gitea/gitea/issues/27358
Diffstat (limited to 'templates/repo/issue/view_content/sidebar.tmpl')
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index c3ba15390b..4be1f52dd5 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -428,15 +428,15 @@ <div class="ui relaxed divided list"> {{range .BlockingDependencies}} <div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} gt-df gt-ac gt-sb"> - <div class="item-left gt-df gt-jc gt-fc gt-f1"> + <div class="item-left gt-df gt-jc gt-fc gt-f1 gt-ellipsis"> <a class="title muted" href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}"> #{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}} </a> - <div class="text small"> + <div class="text small gt-ellipsis" data-tooltip-content="{{.Repository.OwnerName}}/{{.Repository.Name}}"> {{.Repository.OwnerName}}/{{.Repository.Name}} </div> </div> - <div class="item-right gt-df gt-ac"> + <div class="item-right gt-df gt-ac gt-m-2"> {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} <a class="delete-dependency-button ci muted" data-id="{{.Issue.ID}}" data-type="blocking" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.remove_info"}}"> {{svg "octicon-trash" 16}} @@ -446,7 +446,7 @@ </div> {{end}} {{if .BlockingDependenciesNotPermitted}} - <div class="item gt-df gt-ac gt-sb"> + <div class="item gt-df gt-ac gt-sb gt-ellipsis"> <span>{{ctx.Locale.TrN (len .BlockingDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockingDependenciesNotPermitted)}}</span> </div> {{end}} @@ -460,15 +460,15 @@ <div class="ui relaxed divided list"> {{range .BlockedByDependencies}} <div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} gt-df gt-ac gt-sb"> - <div class="item-left gt-df gt-jc gt-fc gt-f1"> + <div class="item-left gt-df gt-jc gt-fc gt-f1 gt-ellipsis"> <a class="title muted" href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}"> #{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}} </a> - <div class="text small"> + <div class="text small gt-ellipsis" data-tooltip-content="{{.Repository.OwnerName}}/{{.Repository.Name}}"> {{.Repository.OwnerName}}/{{.Repository.Name}} </div> </div> - <div class="item-right gt-df gt-ac"> + <div class="item-right gt-df gt-ac gt-m-2"> {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} <a class="delete-dependency-button ci muted" data-id="{{.Issue.ID}}" data-type="blockedBy" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.remove_info"}}"> {{svg "octicon-trash" 16}} @@ -480,18 +480,18 @@ {{if $.CanCreateIssueDependencies}} {{range .BlockedByDependenciesNotPermitted}} <div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} gt-df gt-ac gt-sb"> - <div class="item-left gt-df gt-jc gt-fc gt-f1"> - <div> + <div class="item-left gt-df gt-jc gt-fc gt-f1 gt-ellipsis"> + <div class="gt-ellipsis"> <span data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.no_permission.can_remove"}}">{{svg "octicon-lock" 16}}</span> <span class="title" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}"> #{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}} </span> </div> - <div class="text small"> + <div class="text small gt-ellipsis" data-tooltip-content="{{.Repository.OwnerName}}/{{.Repository.Name}}"> {{.Repository.OwnerName}}/{{.Repository.Name}} </div> </div> - <div class="item-right gt-df gt-ac"> + <div class="item-right gt-df gt-ac gt-m-2"> {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} <a class="delete-dependency-button ci muted" data-id="{{.Issue.ID}}" data-type="blocking" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.remove_info"}}"> {{svg "octicon-trash" 16}} @@ -501,7 +501,7 @@ </div> {{end}} {{else if .BlockedByDependenciesNotPermitted}} - <div class="item gt-df gt-ac gt-sb"> + <div class="item gt-df gt-ac gt-sb gt-ellipsis"> <span>{{ctx.Locale.TrN (len .BlockedByDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockedByDependenciesNotPermitted)}}</span> </div> {{end}} |