mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-16 01:43:24 +09:00
Backport #36748 by POPSuL Fixes #36742 Co-authored-by: Viktor Suprun <popsul1993@gmail.com>
This commit is contained in:
co-authored by
Viktor Suprun
parent
00566cc953
commit
19e36e8a70
@@ -27,7 +27,7 @@ function getDefaultSvgBoundsIfUndefined(text: string, src: string) {
|
|||||||
const viewBox = svg.viewBox.baseVal;
|
const viewBox = svg.viewBox.baseVal;
|
||||||
return {
|
return {
|
||||||
width: defaultSize,
|
width: defaultSize,
|
||||||
height: defaultSize * viewBox.width / viewBox.height,
|
height: defaultSize * viewBox.height / viewBox.width,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user