forked from Imagelibrary/littlefs
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:
@@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user