From 4744cb32e274ac6ce3e3e953d47b32b8e8f021e3 Mon Sep 17 00:00:00 2001 From: puni9869 <80308335+puni9869@users.noreply.github.com> Date: Wed, 12 Jul 2023 16:06:56 +0530 Subject: [PATCH] Fix margin on the `new/edit milestone` page (#25801) There is some distortion in desktop and mobile ui for new/edit milestone page. Fixing the new/edit milestone page for desktop and mobile ui Design background https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150 https://balsamiq.com/learn/articles/button-design-best-practices/ Screen shots Before: ![image](https://github.com/go-gitea/gitea/assets/80308335/c8627679-da2d-465f-bc8f-978d7b836919) ![image](https://github.com/go-gitea/gitea/assets/80308335/43b54599-2856-440a-a13c-08bb3cedf35c) After ![image](https://github.com/go-gitea/gitea/assets/80308335/85ca3d32-4842-41bc-8647-aa4222b9cc06) ![image](https://github.com/go-gitea/gitea/assets/80308335/c00e87c4-e64e-4b18-aa42-d26c3942a21b) --------- Co-authored-by: Denys Konovalov Co-authored-by: Giteabot --- templates/repo/issue/milestone_new.tmpl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/templates/repo/issue/milestone_new.tmpl b/templates/repo/issue/milestone_new.tmpl index 1979eb07a..564501085 100644 --- a/templates/repo/issue/milestone_new.tmpl +++ b/templates/repo/issue/milestone_new.tmpl @@ -21,9 +21,8 @@ {{end}} {{template "base/alert" .}} - + {{.CsrfTokenHtml}} - {{.locale.Tr "repo.milestones.title"}} @@ -39,10 +38,8 @@ {{.locale.Tr "repo.milestones.desc"}} {{.content}} - - - + {{if .PageIsEditMilestone}} {{.locale.Tr "repo.milestones.cancel"}} @@ -55,7 +52,6 @@ {{.locale.Tr "repo.milestones.create"}} {{end}} -