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:
Joswayandsilverwind authored and GitHub committed 2026-10-22 21:17:14 +00:00
1 parent 7448b49aac
commit 7ee96b7faa
1 file changed
+2 -2
+2 -2
View File
@@ -92,10 +92,10 @@
{{$commitLink := printf "%s/commit/%s" $repoLink $pushCommit.Sha1}}
<div class="flex-text-block">
{{ctx.RenderUtils.AvatarStackPushCommit $pushCommit}}
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha $pushCommit.Sha1}}</a>
<span class="tw-inline-block tw-truncate">
<span class="tw-flex-1 gt-ellipsis">
{{ctx.RenderUtils.RenderCommitMessage $pushCommit.Message $repo}}
</span>
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha $pushCommit.Sha1}}</a>
</div>
{{end}}
</div>