From 28643cc276f580718cc9048fdab6af1d80053c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Sat, 7 Sep 2024 11:16:16 +0200 Subject: [PATCH] Fix bad spacing on new release page --- templates/repo/release/new.tmpl | 43 +++++++++++++++----------------- web_src/css/repo/release-tag.css | 4 --- 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 9278e7c28b..0fc385dee7 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -111,32 +111,29 @@
- {{if not .PageIsEditRelease}} -
-
+
+ {{if not .PageIsEditRelease}} +
-
- {{else}} - - {{end}} -
-
+ {{ctx.Locale.Tr "repo.release.add_tag_msg"}} + + + {{else}} + + {{end}} +
-
- {{ctx.Locale.Tr "repo.release.prerelease_helper"}} - {{if not .DisableDownloadSourceArchives}} -
-
+ {{ctx.Locale.Tr "repo.release.prerelease_desc"}} + {{ctx.Locale.Tr "repo.release.prerelease_helper"}} + + {{if not .DisableDownloadSourceArchives}} +
-
- {{ctx.Locale.Tr "repo.release.hide_archive_links_helper"}} - {{end}} + {{ctx.Locale.Tr "repo.release.hide_archive_links"}} + {{ctx.Locale.Tr "repo.release.hide_archive_links_helper"}} + + {{end}} +
{{if .PageIsEditRelease}} diff --git a/web_src/css/repo/release-tag.css b/web_src/css/repo/release-tag.css index 429a4690a4..9860813e98 100644 --- a/web_src/css/repo/release-tag.css +++ b/web_src/css/repo/release-tag.css @@ -99,10 +99,6 @@ padding-bottom: 10px; } -.repository.new.release .prerelease.field { - margin-bottom: 0; -} - @media (max-width: 438px) { .repository.new.release .field button, .repository.new.release .field input {