gitea/web_src/js
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
..
components fix some file icon ui (#36078) 2025-12-04 19:47:23 +01:00
features Fix SVG size calulation, only use style attribute (#36133) 2025-12-12 09:39:02 +02:00
markup Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
modules Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
render Update eslint to v9 (#35485) 2025-09-14 19:15:06 +03:00
standalone Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
utils Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 -05:00
webcomponents Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
bootstrap.test.ts
bootstrap.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
globals.d.ts Merge index.js (#34963) 2025-07-06 04:55:16 +00:00
globals.ts Merge index.js (#34963) 2025-07-06 04:55:16 +00:00
htmx.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
index-domready.ts Add "Go to file", "Delete Directory" to repo file list page (#35911) 2025-11-30 11:58:15 +08:00
index.ts Load jQuery as early as possible to support custom scripts (#35926) 2025-11-12 00:11:46 +08:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Fix a number of strictNullChecks-related issues (#35795) 2025-11-03 20:17:06 +00:00
types.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
utils.test.ts Use git diff-tree for DiffFileTree on diff pages (#33514) 2025-02-28 00:58:25 +00:00
utils.ts Enable TypeScript strictNullChecks (#35843) 2025-12-03 02:13:16 +00:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00