diff options
author | Giteabot <teabot@gitea.io> | 2023-06-14 13:21:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 13:21:48 -0400 |
commit | 5191ab64453e9e8a52f9e51ee65911b82fa516ec (patch) | |
tree | 97df064943db4924bc46f15dd12f2f3c8e055b3a /templates/user | |
parent | bfd3eb9dbcdb7aee5ca640a0321ef93516a21a9c (diff) | |
download | gitea-5191ab64453e9e8a52f9e51ee65911b82fa516ec.tar.gz gitea-5191ab64453e9e8a52f9e51ee65911b82fa516ec.zip |
Use flex to align SVG and text (#25163) (#25260)
Backport #25163 by @wxiaoguang
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>
```
![image](https://github.com/go-gitea/gitea/assets/2114189/1d3c10f1-0bc7-4c26-b236-bad537d5c465)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/user')
0 files changed, 0 insertions, 0 deletions