forgejo-federation/templates/shared
wxiaoguang ffa4949eaa
Improve flex list UI (#26970)
1. There is already `gt-ac`, so no need to introduce `flex-item-center`
2. The `flex-item-baseline` and `.flex-item-icon svg { margin-top: 1px
}` seem to be a tricky patch, they don't resolve the root problem, and
still cause misalignment in some cases.
* The root problem is: the "icon" needs to align with the sibling
"title"
    * So, make the "icon" and the "title" both have the same height 
3. `flex-text-inline` could only be used if the element is really
"inline", otherwise its `vertical-align` would make the box size change.
In most cases, `flex-text-block` is good enough.


![image](https://github.com/go-gitea/gitea/assets/2114189/1b7acfc2-b1c7-4e9c-a983-2fa932026479)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-09-08 13:57:18 +00:00
..
actions Fix typo of RunerOwnerID (#26508) 2023-08-15 23:10:40 +00:00
secrets Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
user Relocate the RSS user feed button (#26882) 2023-09-03 11:06:59 +00:00
variables Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
webhook Use shared template for webhook icons (#26242) 2023-07-31 08:00:52 +00:00
combomarkdowneditor.tmpl Don't autosize textarea in diff view (#26233) 2023-07-31 00:11:15 +02:00
issueicon.tmpl Rework notifications list (#24812) 2023-05-25 02:31:26 +00:00
issuelist.tmpl Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
searchbottom.tmpl Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
searchinput.tmpl Introduce shared template for search inputs (#25338) 2023-06-22 10:27:35 +00:00