From dc0d3a40ab008f5ff20ad50d8b4a58277595f2fa Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Fri, 28 Jun 2024 13:11:32 +0500 Subject: [PATCH] ui: improve button gap consistency --- templates/repo/release/new.tmpl | 2 +- templates/repo/release_tag_header.tmpl | 22 ++++++++++++---------- web_src/css/repo.css | 3 ++- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index e1881b1d94..b653fc0c2c 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -108,7 +108,7 @@ {{ctx.Locale.Tr "repo.release.hide_archive_links_helper"}} {{end}}
-
+
{{if .PageIsEditRelease}} {{ctx.Locale.Tr "repo.release.cancel"}} diff --git a/templates/repo/release_tag_header.tmpl b/templates/repo/release_tag_header.tmpl index f4eeb532e0..dafe9f2fa6 100644 --- a/templates/repo/release_tag_header.tmpl +++ b/templates/repo/release_tag_header.tmpl @@ -11,16 +11,18 @@ {{end}}
- {{if .EnableFeed}} - - {{svg "octicon-rss" 16}} {{ctx.Locale.Tr "rss_feed"}} - - {{end}} - {{if and (not .PageIsTagList) .CanCreateRelease}} - - {{ctx.Locale.Tr "repo.release.new_release"}} - - {{end}} +
+ {{if .EnableFeed}} + + {{svg "octicon-rss" 16}} {{ctx.Locale.Tr "rss_feed"}} + + {{end}} + {{if and (not .PageIsTagList) .CanCreateRelease}} + + {{ctx.Locale.Tr "repo.release.new_release"}} + + {{end}} +
{{else if $canReadCode}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index e4f8cce8b4..e90e0ec4fe 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -601,7 +601,8 @@ td .commit-summary { align-items: center; } -.repository.view.issue .button-row { +.repository.view.issue .button-row, +.repository.releases .button-row { display: flex; }