From 9cefb7be737c6564668d95d8a43b4425e9a03d13 Mon Sep 17 00:00:00 2001 From: Hester Gong Date: Fri, 24 Mar 2023 02:07:04 +0800 Subject: [PATCH] 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 +++--- web_src/css/helpers.css | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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}}
diff --git a/web_src/css/helpers.css b/web_src/css/helpers.css index 1c02de2d7a..4756d31bec 100644 --- a/web_src/css/helpers.css +++ b/web_src/css/helpers.css @@ -197,6 +197,8 @@ .gt-content-center { align-content: center !important; } +.gt-whitespace-nowrap { white-space: nowrap !important; } + @media (max-width: 767px) { .gt-db-small { display: block !important; } .gt-w-100-small { width: 100% !important; }