0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-25 08:11:19 +01:00
gitea/templates
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
..
admin Extract common code to new template (#26933) 2023-09-06 10:11:06 +00:00
api/packages/pypi
base update footer link to new landing page (#26916) 2023-09-05 16:44:07 +00:00
code
custom
devtest
explore Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
mail
org Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
package
projects
repo Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
shared Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
status
swagger Refactor secrets modification logic (#26873) 2023-09-05 15:21:02 +00:00
user Improve flex list UI (#26970) 2023-09-08 13:57:18 +00:00
webhook Extract common code to new template (#26933) 2023-09-06 10:11:06 +00:00
home.tmpl
install.tmpl
post-install.tmpl