scripts: Dropped max-width from generated svgs

Not sure what the point of this was, I think it was copied from a d3
example svg at some point. But it forces the svg to always fit in the
window, even if this makes the svg unreadable.

These svgs tend to end up questionably large in order to fit in the most
info, so the unreadableness ends up a real problem for even modest
window sizes.
This commit is contained in:
Christopher Haster
2025-05-25 00:51:17 -05:00
parent 151054cb96
commit a991c39f29
3 changed files with 5 additions and 11 deletions

View File

@@ -1185,9 +1185,7 @@ def main(paths, output, *,
'viewBox="0,0,%(width)d,%(height)d" '
'width="%(width)d" '
'height="%(height)d" '
'style="max-width: 100%%; '
'height: auto; '
'font: %(font_size)dpx %(font)s; '
'style="font: %(font_size)dpx %(font)s; '
'background-color: %(background)s; '
'user-select: %(user_select)s;">' % dict(
width=width_,