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 viewBox="0 0 496.00001 332.42999" height="332.42999" width="496" xmlns="http://www.w3.org/2000/svg">
<svg viewBox="0 0 496.00001 332.42999" height="100%" width="100%" xmlns="http://www.w3.org/2000/svg">
<path id="refine_final" class="st0"
d="m 223.59651,49.000052 46.92657,31.517149 c 9.72343,6.530577 19.67771,12.909917 36.82991,12.909917 26.69981,0 50.48049,-19.403463 50.48049,-19.403463 L 247.61833,1.481344e-4 c 0,0 -12.02703,13.2232368656 -49.772,36.7324318656 -39.63096,24.684824 -60.41129,31.852894 -60.41129,31.852894 l 142.24783,95.614216 -9.35135,6.12524 -45.63446,-30.64917 c -9.67576,-6.49849 -19.66829,-12.90352 -36.82225,-12.90352 -26.6987,0 -50.42964,19.45573 -50.42964,19.45573 l 110.22138,74.02775 c 0,0 12.0288,-13.22381 49.77376,-36.73293 39.62984,-24.68425 60.41193,-31.85289 60.41193,-31.85289 L 214.25658,55.133192 Z"
style="fill:#de0039;stroke-width:7.98271" />

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB