webstead: more sensible viewBox for <svg>

This commit is contained in:
Ben Harris 2025-10-07 01:51:13 +01:00
parent e6b411252b
commit 15f9f591a1

View File

@ -79,6 +79,7 @@
for (var e of document.querySelectorAll('#pixels input')) {
e.onchange = update_glyph;
}
document.querySelector('#inpane').onreset = update_glyph;
update_glyph();
}
import("./bedstead.js").then((module) => {
@ -164,7 +165,7 @@
</table>
</form>
<div id="outpane">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 500 1000">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 500 900">
<g transform="scale(1,-1) translate(0,-800)">
<path id="rendered" fill="currentColor"/>
</g>