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 +1 @@
<svg height="320" viewBox="0 0 26 16" width="520" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><g id="a" fill="#fff" transform="matrix(.625 0 0 .625 3.944272 0)"><g id="b"><g id="c"><path id="d" d="m1 0h-1v.5z" transform="matrix(.95105652 .30901699 -.30901699 .95105652 .048943 -.309017)"/><use transform="scale(1 -1)" xlink:href="#d"/></g><use transform="matrix(.30901699 .95105652 -.95105652 .30901699 0 0)" xlink:href="#c"/></g><use transform="matrix(.30901699 -.95105652 .95105652 .30901699 0 0)" xlink:href="#c"/><use transform="matrix(-.80901699 .58778525 -.58778525 -.80901699 0 0)" xlink:href="#b"/></g><clipPath id="e"><path d="m0 16v-16l26 3-6 5 6 5z"/></clipPath></defs><g clip-path="url(#e)" fill="#fff" stroke="#c1133d"><path d="m26 3-26-3v16l26-3" stroke-width="4"/><path d="m0 8h26" stroke-width="2"/></g><path d="m0 0v16l16-8z" fill="#001c5a"/><g transform="translate(4.944272 8)"><circle fill="#fff" r="3"/><circle fill="#c1133d" r="2"/><use x="4" xlink:href="#a"/><g id="f"><use xlink:href="#a"/><use transform="matrix(.98584947 -.167633 .167633 .98584947 0 0)" x="2" xlink:href="#a"/><use transform="matrix(.98584947 .167633 -.167633 .98584947 0 0)" x="2" xlink:href="#a"/></g><g id="g"><use transform="matrix(.44721359 .89442719 -.89442719 .44721359 0 0)" xlink:href="#a"/><use transform="matrix(-.04494823 .99898932 -.99898932 -.04494823 0 0)" xlink:href="#a"/><use transform="matrix(-.52573111 .85065081 -.85065081 -.52573111 0 0)" xlink:href="#f"/><use transform="matrix(-.87342175 .48696452 -.48696452 -.87342175 0 0)" xlink:href="#a"/></g><use transform="scale(-1)" xlink:href="#a"/><use transform="scale(1 -1)" xlink:href="#g"/></g></svg>
<svg height="100%" viewBox="0 0 26 16" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><g id="a" fill="#fff" transform="matrix(.625 0 0 .625 3.944272 0)"><g id="b"><g id="c"><path id="d" d="m1 0h-1v.5z" transform="matrix(.95105652 .30901699 -.30901699 .95105652 .048943 -.309017)"/><use transform="scale(1 -1)" xlink:href="#d"/></g><use transform="matrix(.30901699 .95105652 -.95105652 .30901699 0 0)" xlink:href="#c"/></g><use transform="matrix(.30901699 -.95105652 .95105652 .30901699 0 0)" xlink:href="#c"/><use transform="matrix(-.80901699 .58778525 -.58778525 -.80901699 0 0)" xlink:href="#b"/></g><clipPath id="e"><path d="m0 16v-16l26 3-6 5 6 5z"/></clipPath></defs><g clip-path="url(#e)" fill="#fff" stroke="#c1133d"><path d="m26 3-26-3v16l26-3" stroke-width="4"/><path d="m0 8h26" stroke-width="2"/></g><path d="m0 0v16l16-8z" fill="#001c5a"/><g transform="translate(4.944272 8)"><circle fill="#fff" r="3"/><circle fill="#c1133d" r="2"/><use x="4" xlink:href="#a"/><g id="f"><use xlink:href="#a"/><use transform="matrix(.98584947 -.167633 .167633 .98584947 0 0)" x="2" xlink:href="#a"/><use transform="matrix(.98584947 .167633 -.167633 .98584947 0 0)" x="2" xlink:href="#a"/></g><g id="g"><use transform="matrix(.44721359 .89442719 -.89442719 .44721359 0 0)" xlink:href="#a"/><use transform="matrix(-.04494823 .99898932 -.99898932 -.04494823 0 0)" xlink:href="#a"/><use transform="matrix(-.52573111 .85065081 -.85065081 -.52573111 0 0)" xlink:href="#f"/><use transform="matrix(-.87342175 .48696452 -.48696452 -.87342175 0 0)" xlink:href="#a"/></g><use transform="scale(-1)" xlink:href="#a"/><use transform="scale(1 -1)" xlink:href="#g"/></g></svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB