mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Improve alignment of commit status icon on commit page (#34750)
Before, icon vertically misaligned: <img width="243" alt="Screenshot 2025-06-17 at 18 14 26" src="https://github.com/user-attachments/assets/ac515c6d-25bd-44da-88be-a1d93c137ed0" /> After, icon correctly vertically centered: <img width="244" alt="Screenshot 2025-06-17 at 18 14 40" src="https://github.com/user-attachments/assets/41556d52-aa15-4bfb-82e2-91ed774cf2b0" /> I think it's fine to single out this one case and not alter `flex-text-inline` because that class seems to work well in other places.
This commit is contained in:
		| @@ -5,7 +5,7 @@ | |||||||
| 	<div class="ui container fluid padded"> | 	<div class="ui container fluid padded"> | ||||||
| 		<div class="ui top attached header clearing segment tw-relative commit-header"> | 		<div class="ui top attached header clearing segment tw-relative commit-header"> | ||||||
| 			<div class="tw-flex tw-mb-4 tw-gap-1"> | 			<div class="tw-flex tw-mb-4 tw-gap-1"> | ||||||
| 				<h3 class="tw-mb-0 tw-flex-1"><span class="commit-summary" title="{{.Commit.Summary}}">{{ctx.RenderUtils.RenderCommitMessage .Commit.Message $.Repository}}</span>{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses}}</h3> | 				<h3 class="tw-mb-0 tw-flex-1"><span class="commit-summary" title="{{.Commit.Summary}}">{{ctx.RenderUtils.RenderCommitMessage .Commit.Message $.Repository}}</span>{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "AdditionalClasses" "tw-inline"}}</h3> | ||||||
| 				{{if not $.PageIsWiki}} | 				{{if not $.PageIsWiki}} | ||||||
| 					<div class="commit-header-buttons"> | 					<div class="commit-header-buttons"> | ||||||
| 						<a class="ui primary tiny button" href="{{.SourcePath}}"> | 						<a class="ui primary tiny button" href="{{.SourcePath}}"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user