unable to change viewBox
to 0 0 24 24
#7664
-
The following is the SVG file. It works well. <svg role="img" xmlns="http://www.w3.org/2000/svg" width="488.202" height="489.008" viewBox="0 0 129.17 129.383"><title>HarmonyOS</title><g style="fill:#000"><path d="M554.271 158.038h5.662v11.602h12.625v-11.602h5.662v29.046h-5.662v-12.251h-12.625v12.25h-5.662zM581.24 187.084ZM593.486 158.038h5.579l9.185 15.375h.335l9.185-15.375h5.62v29.046h-5.62v-14.32l.336-4.868h-.336l-7.633 13.022h-3.397l-7.675-13.022h-.336l.336 4.868v14.32h-5.579z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#000;stroke-width:3.43732" transform="translate(-522.616 -128.44)"/></g><path d="M608.86 228.82q-1.973 0-3.774-.528t-3.302-1.582q-1.5-1.055-2.616-2.556-1.115-1.542-1.758-3.57l5.446-2.028q.6 2.19 2.101 3.65 1.5 1.42 3.945 1.42.9 0 1.715-.202.858-.244 1.5-.65.687-.446 1.073-1.095.386-.649.386-1.5 0-.812-.3-1.46-.3-.65-1.03-1.218-.686-.568-1.843-1.095-1.115-.528-2.787-1.095l-1.887-.65q-1.244-.405-2.53-1.095-1.243-.69-2.273-1.663-1.029-.974-1.715-2.272-.643-1.338-.643-3.002 0-1.703.686-3.164.73-1.5 2.015-2.596 1.33-1.136 3.13-1.744 1.844-.65 4.074-.65 2.316 0 3.988.609 1.715.568 2.873 1.5 1.2.893 1.93 1.989.728 1.095 1.071 2.069l-5.102 2.028q-.429-1.217-1.587-2.19-1.115-.974-3.087-.974-1.887 0-3.13.852-1.244.81-1.244 2.15 0 1.298 1.2 2.23 1.201.893 3.817 1.745l1.93.609q1.844.608 3.344 1.42 1.544.77 2.616 1.865 1.115 1.096 1.672 2.516.6 1.379.6 3.204 0 2.272-.986 3.935-.943 1.623-2.444 2.678-1.5 1.054-3.387 1.582-1.887.527-3.688.527z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#000;stroke-width:3.47555" transform="translate(-522.616 -128.44)"/><path d="M566.262 228.82q-3.165 0-5.895-1.177-2.69-1.177-4.667-3.205-1.978-2.069-3.125-4.827-1.108-2.8-1.108-5.964 0-3.164 1.108-5.922 1.147-2.8 3.125-4.828 1.978-2.069 4.667-3.245 2.73-1.177 5.895-1.177 3.164 0 5.854 1.177 2.73 1.176 4.707 3.245 1.978 2.029 3.086 4.828 1.147 2.758 1.147 5.922 0 3.164-1.147 5.964-1.108 2.758-3.086 4.827-1.978 2.028-4.707 3.205-2.69 1.176-5.854 1.176zm0-5.193q1.977 0 3.678-.73 1.74-.73 3.007-2.029 1.305-1.298 2.017-3.124.752-1.866.752-4.097 0-2.23-.752-4.056-.712-1.866-2.017-3.165-1.266-1.298-3.007-2.028-1.7-.73-3.678-.73t-3.719.73q-1.7.73-3.006 2.028-1.266 1.299-2.018 3.165-.712 1.825-.712 4.056t.712 4.097q.752 1.826 2.018 3.124 1.305 1.298 3.006 2.028 1.74.73 3.719.73z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#000;stroke-width:3.3382" transform="translate(-522.616 -128.44)"/><path d="M582.52 228.17Z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#f60;stroke-width:3.3382" transform="translate(-522.616 -128.44)"/><path style="fill:#5b8aee;fill-opacity:1;stroke:none;stroke-width:89.9999;stroke-linecap:square;paint-order:markers fill stroke" d="M555.483 231.567h21.248v4.944h-21.248z" transform="translate(-522.616 -128.44)"/></svg> When I changed <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>HarmonyOS</title><g style="fill:#000"><path d="M554.271 158.038h5.662v11.602h12.625v-11.602h5.662v29.046h-5.662v-12.251h-12.625v12.25h-5.662zM581.24 187.084ZM593.486 158.038h5.579l9.185 15.375h.335l9.185-15.375h5.62v29.046h-5.62v-14.32l.336-4.868h-.336l-7.633 13.022h-3.397l-7.675-13.022h-.336l.336 4.868v14.32h-5.579z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#000;stroke-width:3.43732" transform="translate(-522.616 -128.44)"/></g><path d="M608.86 228.82q-1.973 0-3.774-.528t-3.302-1.582q-1.5-1.055-2.616-2.556-1.115-1.542-1.758-3.57l5.446-2.028q.6 2.19 2.101 3.65 1.5 1.42 3.945 1.42.9 0 1.715-.202.858-.244 1.5-.65.687-.446 1.073-1.095.386-.649.386-1.5 0-.812-.3-1.46-.3-.65-1.03-1.218-.686-.568-1.843-1.095-1.115-.528-2.787-1.095l-1.887-.65q-1.244-.405-2.53-1.095-1.243-.69-2.273-1.663-1.029-.974-1.715-2.272-.643-1.338-.643-3.002 0-1.703.686-3.164.73-1.5 2.015-2.596 1.33-1.136 3.13-1.744 1.844-.65 4.074-.65 2.316 0 3.988.609 1.715.568 2.873 1.5 1.2.893 1.93 1.989.728 1.095 1.071 2.069l-5.102 2.028q-.429-1.217-1.587-2.19-1.115-.974-3.087-.974-1.887 0-3.13.852-1.244.81-1.244 2.15 0 1.298 1.2 2.23 1.201.893 3.817 1.745l1.93.609q1.844.608 3.344 1.42 1.544.77 2.616 1.865 1.115 1.096 1.672 2.516.6 1.379.6 3.204 0 2.272-.986 3.935-.943 1.623-2.444 2.678-1.5 1.054-3.387 1.582-1.887.527-3.688.527z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#000;stroke-width:3.47555" transform="translate(-522.616 -128.44)"/><path d="M566.262 228.82q-3.165 0-5.895-1.177-2.69-1.177-4.667-3.205-1.978-2.069-3.125-4.827-1.108-2.8-1.108-5.964 0-3.164 1.108-5.922 1.147-2.8 3.125-4.828 1.978-2.069 4.667-3.245 2.73-1.177 5.895-1.177 3.164 0 5.854 1.177 2.73 1.176 4.707 3.245 1.978 2.029 3.086 4.828 1.147 2.758 1.147 5.922 0 3.164-1.147 5.964-1.108 2.758-3.086 4.827-1.978 2.028-4.707 3.205-2.69 1.176-5.854 1.176zm0-5.193q1.977 0 3.678-.73 1.74-.73 3.007-2.029 1.305-1.298 2.017-3.124.752-1.866.752-4.097 0-2.23-.752-4.056-.712-1.866-2.017-3.165-1.266-1.298-3.007-2.028-1.7-.73-3.678-.73t-3.719.73q-1.7.73-3.006 2.028-1.266 1.299-2.018 3.165-.712 1.825-.712 4.056t.712 4.097q.752 1.826 2.018 3.124 1.305 1.298 3.006 2.028 1.74.73 3.719.73z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#000;stroke-width:3.3382" transform="translate(-522.616 -128.44)"/><path d="M582.52 228.17Z" style="font-weight:700;font-size:40.5663px;font-family:'Product Sans';-inkscape-font-specification:'Product Sans Bold';fill:#f60;stroke-width:3.3382" transform="translate(-522.616 -128.44)"/><path style="fill:#5b8aee;fill-opacity:1;stroke:none;stroke-width:89.9999;stroke-linecap:square;paint-order:markers fill stroke" d="M555.483 231.567h21.248v4.944h-21.248z" transform="translate(-522.616 -128.44)"/></svg> |
Beta Was this translation helpful? Give feedback.
Answered by
Anmol-Baranwal
Aug 12, 2022
Replies: 1 comment 1 reply
-
I have adjusted the SVG viewBox.
You can make further changes as per documentation. You cannot directly change the value of viewBox as it requires JavaScript. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yusancky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have adjusted the SVG viewBox.