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="256" height="249" viewBox="0 0 256 249">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 256 249">
<path fill="none" id="background"
d="M82.085 244.934c-5.946 0-11.561-2.642-15.36-7.432L8.92 165.657c-3.799-4.79-5.285-10.9-3.799-16.847l20.645-89.682c1.321-5.946 5.285-10.736 10.736-13.378l83.571-39.97c2.643-1.32 5.616-1.981 8.589-1.981s5.945.66 8.588 1.982l83.572 39.804c5.45 2.642 9.414 7.432 10.735 13.378l20.645 89.682c1.322 5.946 0 12.057-3.798 16.847l-57.807 71.845c-3.799 4.624-9.414 7.432-15.36 7.432z" />
<path fill="currentColor" id="outline"

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB