Merge pull request 'Port "Fix project name wrapping, remove horizontal margin on header"' (#3730) from 0ko/forgejo:wrappp into v7.0/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3730
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2024-05-12 13:46:38 +00:00
commit 186cb13b26
3 changed files with 6 additions and 5 deletions

View file

@ -0,0 +1 @@
Fix project name wrapping

View file

@ -41,9 +41,9 @@
<div class="milestone-list"> <div class="milestone-list">
{{range .Projects}} {{range .Projects}}
<li class="milestone-card"> <li class="milestone-card">
<h3 class="flex-text-block tw-m-0"> <h3 class="flex-text-block tw-m-0 tw-gap-3">
{{svg .IconName 16}} {{svg .IconName 16}}
<a class="muted" href="{{.Link ctx}}">{{.Title}}</a> <a class="muted tw-break-anywhere" href="{{.Link ctx}}">{{.Title}}</a>
</h3> </h3>
<div class="milestone-toolbar"> <div class="milestone-toolbar">
<div class="group"> <div class="group">

View file

@ -1,8 +1,8 @@
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}} {{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
<div class="ui container"> <div class="ui container tw-max-w-full">
<div class="tw-flex tw-justify-between tw-items-center tw-mb-4"> <div class="tw-flex tw-justify-between tw-items-center tw-mb-4 tw-gap-3">
<h2 class="tw-mb-0">{{.Project.Title}}</h2> <h2 class="tw-mb-0 tw-flex-1 tw-break-anywhere">{{.Project.Title}}</h2>
{{if $canWriteProject}} {{if $canWriteProject}}
<div class="ui compact mini menu"> <div class="ui compact mini menu">
<a class="item" href="{{.Link}}/edit?redirect=project"> <a class="item" href="{{.Link}}/edit?redirect=project">