From 9673355bf3c4b4948df8a2d78ab397e77cf46799 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Sun, 12 May 2024 17:37:36 +0500 Subject: [PATCH] Port "Fix project name wrapping, remove horizontal margin on header" Port of https://github.com/go-gitea/gitea/commit/370b1bdb3757e91c59303b0ce6ec49c56eca795b. --- release-notes/8.0.0/3730.md | 1 + templates/projects/list.tmpl | 4 ++-- templates/projects/view.tmpl | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 release-notes/8.0.0/3730.md diff --git a/release-notes/8.0.0/3730.md b/release-notes/8.0.0/3730.md new file mode 100644 index 0000000000..07cf3775f9 --- /dev/null +++ b/release-notes/8.0.0/3730.md @@ -0,0 +1 @@ +Fix project name wrapping diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index 0908f5648c..b892cff996 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -41,9 +41,9 @@
{{range .Projects}}
  • -

    +

    {{svg .IconName 16}} - {{.Title}} + {{.Title}}

    diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index b45174b086..d89750862e 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -1,8 +1,8 @@ {{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}} -
    -
    -

    {{.Project.Title}}

    +
    +
    +

    {{.Project.Title}}

    {{if $canWriteProject}}