From c77bd7deed670af94fff1903ba58e8b4358f56b8 Mon Sep 17 00:00:00 2001 From: HesterG Date: Mon, 6 Mar 2023 21:33:12 +0800 Subject: [PATCH] fix display for menu --- templates/repo/issue/view_content/context_menu.tmpl | 10 +++++----- web_src/less/helpers.less | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index f836271b65b56..399d20b6acb10 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -10,16 +10,16 @@ {{else}} {{$referenceUrl = Printf "%s/files#%s" .ctxData.Issue.Link .item.HashTag}} {{end}} - {{.ctxData.locale.Tr "repo.issues.context.copy_link"}} - {{.ctxData.locale.Tr "repo.issues.context.quote_reply"}} + {{.ctxData.locale.Tr "repo.issues.context.copy_link"}} + {{.ctxData.locale.Tr "repo.issues.context.quote_reply"}} {{if not .ctxData.UnitIssuesGlobalDisabled}} - {{.ctxData.locale.Tr "repo.issues.context.reference_issue"}} + {{.ctxData.locale.Tr "repo.issues.context.reference_issue"}} {{end}} {{if or .ctxData.Permission.IsAdmin .IsCommentPoster .ctxData.HasIssuesOrPullsWritePermission}}
- {{.ctxData.locale.Tr "repo.issues.context.edit"}} + {{.ctxData.locale.Tr "repo.issues.context.edit"}} {{if .delete}} - {{.ctxData.locale.Tr "repo.issues.context.delete"}} + {{.ctxData.locale.Tr "repo.issues.context.delete"}} {{end}} {{end}} diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less index baa5959946e82..cf3be8b6778f2 100644 --- a/web_src/less/helpers.less +++ b/web_src/less/helpers.less @@ -1,6 +1,7 @@ .gt-df { display: flex !important; } .gt-di { display: inline !important; } .gt-dif { display: inline-flex !important; } +.gt-db { display: block !important; } .gt-dib { display: inline-block !important; } .gt-ac { align-items: center !important; } .gt-tc { text-align: center !important; }