diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-15 00:40:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 16:40:15 +0000 |
commit | 46c17c8029a539d276d25585fd6d54153ffa592f (patch) | |
tree | 07f40c7b209f4527a2f7a50ba12aab55984a02ed /templates/repo/diff/compare.tmpl | |
parent | 4c290e92090c0b37f3ff5de44f4f1f535668ca66 (diff) | |
download | gitea-46c17c8029a539d276d25585fd6d54153ffa592f.tar.gz gitea-46c17c8029a539d276d25585fd6d54153ffa592f.zip |
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>
Diffstat (limited to 'templates/repo/diff/compare.tmpl')
-rw-r--r-- | templates/repo/diff/compare.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 01a1cfd54e..4efe81682c 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -44,7 +44,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="icon gt-df gt-ac gt-jc gt-m-0">{{svg "octicon-filter" 16}}</i> + <i class="icon">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.locale.Tr "repo.filter_branch_and_tag"}}..."> </div> <div class="header"> @@ -113,7 +113,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="icon gt-df gt-ac gt-jc gt-m-0">{{svg "octicon-filter" 16}}</i> + <i class="icon">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.locale.Tr "repo.filter_branch_and_tag"}}..."> </div> <div class="header"> |