mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
fix(ui): commit hashes in the activity feed are misaligned (#39883)
Fixes #38646 ### The problem Each commit line of a push in the activity feed starts with the avatar stack of its co-authors. The width of that stack grows with the number of co-authors, so the hash of every commit started at a different horizontal offset and the column looked ragged. --------- Signed-off-by: Josway <jxh98@foxmail.com> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
1 parent
7448b49aac
commit
7ee96b7faa
1 file changed
+2
-2
@@ -92,10 +92,10 @@
|
|||||||
{{$commitLink := printf "%s/commit/%s" $repoLink $pushCommit.Sha1}}
|
{{$commitLink := printf "%s/commit/%s" $repoLink $pushCommit.Sha1}}
|
||||||
<div class="flex-text-block">
|
<div class="flex-text-block">
|
||||||
{{ctx.RenderUtils.AvatarStackPushCommit $pushCommit}}
|
{{ctx.RenderUtils.AvatarStackPushCommit $pushCommit}}
|
||||||
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha $pushCommit.Sha1}}</a>
|
<span class="tw-flex-1 gt-ellipsis">
|
||||||
<span class="tw-inline-block tw-truncate">
|
|
||||||
{{ctx.RenderUtils.RenderCommitMessage $pushCommit.Message $repo}}
|
{{ctx.RenderUtils.RenderCommitMessage $pushCommit.Message $repo}}
|
||||||
</span>
|
</span>
|
||||||
|
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha $pushCommit.Sha1}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user