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,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Pixelmator Pro 3.6.17 -->
<svg width="492" height="492" viewBox="0 0 492 492" xmlns="http://www.w3.org/2000/svg">
<svg width="100%" height="100%" viewBox="0 0 492 492" xmlns="http://www.w3.org/2000/svg">
<g id="Group">
<path id="Path" fill="#2c6dff" stroke="none" d="M 88 215 L 166 215 L 166 166 L 326 166 L 326 326 L 287 326 L 287 404 L 404 404 L 404 88 L 88 88 Z"/>
<path id="path1" fill="#2c6dff" stroke="none" d="M 132 257.899994 C 131.5 259 131 264.799988 131 270.900024 L 131 282 L 143 282 L 143 267 L 191 267 L 191 283 L 203 283 L 203 271.400024 C 203 265.100006 202.5 259 202 257.899994 C 201 256.100006 199.5 256 167 256 C 134.5 256 133 256.100006 132 257.899994 M 90 292 C 88.700012 292.799988 88.799988 401.200012 89.799988 402.200012 C 90.799988 403.200012 246 402 246 402 C 246 402 245.700012 293.099976 244.799988 292.200012 C 243.899994 291.299988 90.899994 291.400024 90 292"/>

Before

Width:  |  Height:  |  Size: 897 B

After

Width:  |  Height:  |  Size: 899 B