mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a96c73f979
Fix regression from https://github.com/go-gitea/gitea/pull/24476 where
the `svg.svg` class misaligns SVG icons across the site and streched
buttons unintentionally in vertical height.
Before (button 30.3px):
<img width="157" alt="Screenshot 2023-05-11 at 22 09 42"
src="https://github.com/go-gitea/gitea/assets/115237/0fd137ab-ab52-4cf8-afca-c45776d526d0">
After (button 30px):
<img width="160" alt="Screenshot 2023-05-11 at 22 09 59"
src="https://github.com/go-gitea/gitea/assets/115237/4b741f4b-0fd2-4fae-9bee-16a7deb098e8">
[vertical-align:
middle](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align)
is not suitable to align icons to text because
> Aligns the middle of the element with the baseline plus half the
x-height of the parent.
Example of `vertical-align: middle` from MDN:
<img width="232" alt="Screenshot 2023-05-11 at 22 29 28"
src="https://github.com/go-gitea/gitea/assets/115237/179fb756-85a1-4cab-8219-1a4958f333e2">
So I think the
[existing](
|
2 years ago | |
---|---|---|
.. | ||
components | 2 years ago | |
features | 2 years ago | |
markup | 2 years ago | |
modules | 2 years ago | |
standalone | 3 years ago | |
test | 2 years ago | |
utils | 2 years ago | |
webcomponents | 2 years ago | |
bootstrap.js | 2 years ago | |
index.js | 2 years ago | |
jquery.js | 5 years ago | |
serviceworker.js | 5 years ago | |
svg.js | 2 years ago | |
svg.test.js | 2 years ago | |
utils.js | 2 years ago | |
utils.test.js | 2 years ago |