From 9cefb7be737c6564668d95d8a43b4425e9a03d13 Mon Sep 17 00:00:00 2001 From: Hester Gong Date: Fri, 24 Mar 2023 02:07:04 +0800 Subject: Fix new issue/pull request btn margin when it is next to sort (#23647) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #23627 Added margin left to the button when it is next to the svg, which has a margin-right of `-0.5rem` And here it might be better if `white-space: nowrap;` is added because otherwise it might look like below on pull requests page on smaller screen 截屏2023-03-23 09 57 41 After: 截屏2023-03-23 10 08 27 Pull Request on smaller screen 截屏2023-03-23 10 25 16 --- templates/user/dashboard/issues.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/user/dashboard') diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 29023d921a..c7065557bd 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -88,7 +88,7 @@
{{if .SingleRepoLink}} {{if eq .SingleRepoAction "issue"}} - {{.locale.Tr "repo.issues.new"}} + {{.locale.Tr "repo.issues.new"}} {{else if eq .SingleRepoAction "pull"}} - {{.locale.Tr "repo.pulls.new"}} + {{.locale.Tr "repo.pulls.new"}} {{end}} {{end}}
-- cgit v1.2.3