From 81d674d6508958d86333bc6319e75c1cf4331e17 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sat, 9 Dec 2023 21:07:36 +1100 Subject: [PATCH] For svg graph move repeated fill & stroke definitions to parent element styles, reducing generated file from 17.3KB - 13.9KB --- templates/partials/sparkline.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partials/sparkline.html b/templates/partials/sparkline.html index c4bf814..5563260 100644 --- a/templates/partials/sparkline.html +++ b/templates/partials/sparkline.html @@ -22,7 +22,7 @@ {% for value, position, message in data_points %} {% set x = (position * vb_width)+margin %} {% set y = (vb_height - value)+margin %} - + {% endfor %} {% endmacro %} @@ -51,7 +51,7 @@ {% for plot in plots %} - + {{ plot_line(plot.points, plot.color) }} {% endfor %}