mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01: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:
		| @@ -75,8 +75,8 @@ function showContentHistoryDetail(issueBaseUrl, commentId, historyId, itemTitleH | ||||
| function showContentHistoryMenu(issueBaseUrl, $item, commentId) { | ||||
|   const $headerLeft = $item.find('.comment-header-left'); | ||||
|   const menuHtml = ` | ||||
|   <div class="ui pointing dropdown top left content-history-menu" data-comment-id="${commentId}"> | ||||
|     • <a class="muted">${i18nTextEdited}${svg('octicon-triangle-down', 14, 'dropdown icon gt-ml-1 gt-mt-1')}</a> | ||||
|   <div class="ui dropdown interact-fg content-history-menu" data-comment-id="${commentId}"> | ||||
|     • ${i18nTextEdited}${svg('octicon-triangle-down', 14, 'dropdown icon')} | ||||
|     <div class="menu"> | ||||
|     </div> | ||||
|   </div>`; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user