mirror of
https://github.com/go-gitea/gitea
synced 2025-08-01 15:18:37 +00:00
Use flex to align SVG and text (#25163)
The code can be as simple as: ```html <div class="flex-text-block">{{svg "octicon-alert"}} {{svg "octicon-x"}} text (block)</div> <div><div class="flex-text-inline">{{svg "octicon-alert"}} {{svg "octicon-x"}} text</div> (inline)</div> <div><button class="ui red button">{{svg "octicon-alert" 24}} {{svg "octicon-x" 24}} text</button></div> ```  --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
<div class="singular-commit" id="{{$tag}}">
|
||||
<span class="badge badge-commit">{{svg "octicon-git-commit"}}</span>
|
||||
{{if .User}}
|
||||
<a href="{{.User.HomeLink}}">
|
||||
{{avatar $.root.Context .User}}
|
||||
</a>
|
||||
<a class="avatar" href="{{.User.HomeLink}}">{{avatar $.root.Context .User}}</a>
|
||||
{{else}}
|
||||
{{avatarByEmail $.root.Context .Author.Email .Author.Name}}
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user