silverwind
4cbcb91b7b
Fix SVG size calulation, only use style attribute ( #36133 )
...
Fixes: https://github.com/go-gitea/gitea/issues/35863
The old code had a conflict between using HTML attributes vs. style
properties where the style was overriding the previously set HTML
attributes:
```html
<img width="300" height="277.02439470988946" style="width: 275px; height: 0px;">
```
I made it so in all cases only `style` properties are used and the
previous width/height values are now set via `style`. Also I did a
number of much-needed typescript improvements to the file.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-12-12 09:39:02 +02:00
..
2025-12-03 02:13:16 +00:00
2025-12-10 07:30:50 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2024-07-07 15:32:30 +00:00
2025-12-05 07:06:13 +00:00
2025-12-03 02:13:16 +00:00
2025-07-14 15:20:17 -07:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2024-07-07 15:32:30 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2024-12-12 19:02:54 +00:00
2025-12-03 02:13:16 +00:00
2025-01-16 04:26:17 +08:00
2025-12-03 02:13:16 +00:00
2025-07-01 21:44:05 +08:00
2025-12-03 02:13:16 +00:00
2025-04-15 22:35:22 +08:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-12 09:39:02 +02:00
2025-12-03 02:13:16 +00:00
2025-01-17 08:55:02 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-09-11 01:50:17 +02:00
2025-12-03 02:13:16 +00:00
2024-07-07 15:32:30 +00:00
2025-05-05 21:53:17 -07:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-03-24 20:26:58 -07:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2024-07-07 15:32:30 +00:00
2025-02-28 00:58:25 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2024-07-07 15:32:30 +00:00
2025-11-30 11:58:15 +08:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-01-30 22:54:50 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-06-25 07:22:58 +08:00
2025-12-03 02:13:16 +00:00
2025-07-01 21:44:05 +08:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00