From 4ab6cf3ddd837b8e27481d2dcbb7742702fe150b Mon Sep 17 00:00:00 2001 From: Texas Date: Fri, 17 Jan 2025 18:50:27 +0100 Subject: [PATCH] variable size for style as requested --- index.css | 1 - modules/renderers/draw-military.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/index.css b/index.css index c9e9ecea..1054e52c 100644 --- a/index.css +++ b/index.css @@ -188,7 +188,6 @@ t, .regimentImage { object-fit: contain; - width: 6px !important; } #statesHalo { diff --git a/modules/renderers/draw-military.js b/modules/renderers/draw-military.js index d7b7a1c9..bada7fa0 100644 --- a/modules/renderers/draw-military.js +++ b/modules/renderers/draw-military.js @@ -59,8 +59,8 @@ const drawRegiments = function (regiments, s) { .attr("class", "regimentImage") .attr("x", d => x(d) - h) .attr("y", d => y(d)) - .attr("height", '6') - .attr("width", '6') + .attr("height", h) + .attr("width", h) .text(d => d.image); }; @@ -107,8 +107,8 @@ const drawRegiment = function (reg, stateId) { .attr("class", "regimentImage") .attr("x", x1 - h) .attr("y", y1) - .attr("height", '6') - .attr("width", '6') + .attr("height", h) + .attr("width", h) .text(reg.image); };