Update SVG logos to use percentage dimensions and add viewBox where missing

- Modified SVG files for logos (webtorrent, wifi, wise-icon, zoom-icon, zoom) to set width and height to 100% for better responsiveness.
- Added viewBox attribute to SVGs that lacked it, using existing width and height values when available.
- Implemented a validation and fixing function in update-data.js to automate the process of ensuring SVGs have the correct attributes.
This commit is contained in:
sHa
2025-06-19 16:46:12 +03:00
parent 8c8078dcd9
commit e86600b610
127 changed files with 3541 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
<svg width="500" height="500" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
<svg width="100%" height="100%" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
<g fill="#e22b28" stroke="none">
<path
d="M 381.346222 38.285858 C 359.903687 36.168884 303.296783 33.004089 249.909134 33.004089 C 196.517792 33.004089 139.916061 36.168884 118.483032 38.285858 C 94.010231 40.781525 82.629738 53.214264 82.629738 77.440002 C 82.629738 123.432587 84.323906 195.10022 87.464439 237.19635 C 90.271889 274.721741 92.462395 304.351349 139.186615 332.736786 C 172.613373 353.055054 205.856308 370.468079 249.141434 392.80188 L 249.88414 393.222473 L 250.650345 392.80188 C 294.033264 370.394562 327.337982 352.981506 360.630157 332.736786 C 407.379395 304.327087 409.581665 274.721741 412.350128 237.19635 C 415.51712 194.900208 417.223785 123.307587 417.223785 77.440002 C 417.223785 53.214264 405.818298 40.781525 381.346222 38.285858 Z M 397.859283 236.174255 C 395.187866 272.08493 393.418671 295.832703 353.10199 320.320221 C 321.462799 339.548035 293.550903 354.204346 251.356247 376.119019 L 249.909134 376.813141 L 248.474518 376.119019 C 207.613708 354.934509 178.464294 339.598022 146.730972 320.320221 C 106.398849 295.832703 104.60688 272.059937 101.960472 236.135284 C 98.830231 194.259735 97.150032 123.123718 97.150032 77.440002 C 97.150032 60.708618 102.889915 54.501068 119.930145 52.755432 C 141.124924 50.664154 197.125168 47.522919 249.909134 47.522919 C 302.715912 47.522919 358.679382 50.664154 379.898407 52.755432 C 396.938629 54.501068 402.668945 60.708618 402.668945 77.440002 C 402.668945 123.10022 400.985077 194.21048 397.859283 236.174255 Z" />

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB