From 538ec6ae6e4e38e4dd180369a62e15b253009d0d Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 12 Mar 2026 09:25:09 +0100 Subject: [PATCH] Fix timeline event layout overflow with long content (#36595) Fixes: https://github.com/go-gitea/gitea/issues/36580 Bug is caused by abuse of float layout, convert layout to flex to fix it. There are more float abuses, but this shouldn't cause any other regressions. Before: Screenshot 2026-02-12 at 06 22 45 After: image --------- Signed-off-by: silverwind Co-authored-by: Claude Opus 4.6 --- .../repo/issue/view_content/comments.tmpl | 8 +-- .../view_content/comments_delete_time.tmpl | 2 +- web_src/css/repo.css | 59 +++++++++---------- 3 files changed, 33 insertions(+), 36 deletions(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 39fd822098..8c08f1c1f1 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -142,12 +142,12 @@
{{svg "octicon-bookmark"}} {{template "shared/user/avatarlink" dict "user" .Poster}} - {{if eq .RefAction 3}}{{end}} + {{if eq .RefAction 3}}{{end}} {{template "shared/user/authorlink" .Poster}} {{ctx.Locale.Tr $refTr .EventTag $createdStr (.RefCommentLink ctx) $refFrom}} + {{if eq .RefAction 3}}{{end}} - {{if eq .RefAction 3}}{{end}}
{{.RefIssueTitle ctx}} {{.RefIssueIdent ctx}} @@ -447,7 +447,7 @@ {{end}} {{if and .Review .Review.CodeComments}} -
+
{{range $filename, $lines := .Review.CodeComments}} {{range $line, $comms := $lines}} {{template "repo/issue/view_content/conversation" dict "." $ "comments" $comms}} @@ -545,7 +545,7 @@ {{end}} {{if and .IsForcePush $.Issue.PullRequest.BaseRepo.Name}} - {{ctx.Locale.Tr "repo.issues.force_push_compare"}} + {{ctx.Locale.Tr "repo.issues.force_push_compare"}} {{end}}
{{if not .IsForcePush}} diff --git a/templates/repo/issue/view_content/comments_delete_time.tmpl b/templates/repo/issue/view_content/comments_delete_time.tmpl index 5534a30df8..219d5fc203 100644 --- a/templates/repo/issue/view_content/comments_delete_time.tmpl +++ b/templates/repo/issue/view_content/comments_delete_time.tmpl @@ -1,7 +1,7 @@ {{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}} {{if (not .comment.Time.Deleted)}} {{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}} - +