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 xmlns="http://www.w3.org/2000/svg" width="504" height="336" x="0px" y="0px" viewBox="0 0 168 112">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" x="0px" y="0px" viewBox="0 0 168 112">
<g fill="#FCC900" stroke="#FFFFFF" stroke-width="1">
<path
d="M68.5,10.5c-8.9,5.6-13.6,14-13.9,25.1c-0.1,9.9,4.1,18.5,13.7,25.2L58.8,70c-11.2-8.4-17.8-20.4-17.8-34.5 C41.1,21.4,48.1,8.8,59,1L68.5,10.5z" />

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB