mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-10 18:26:52 +01:00
[docs] HTML Legend sample: add flex-shrink: 0 to color box (#11330)
This way the color box is prevented from shrinking in case of larger legends.
This commit is contained in:
@@ -61,6 +61,7 @@ const htmlLegendPlugin = {
|
||||
boxSpan.style.borderColor = item.strokeStyle;
|
||||
boxSpan.style.borderWidth = item.lineWidth + 'px';
|
||||
boxSpan.style.display = 'inline-block';
|
||||
boxSpan.style.flexShrink = 0;
|
||||
boxSpan.style.height = '20px';
|
||||
boxSpan.style.marginRight = '10px';
|
||||
boxSpan.style.width = '20px';
|
||||
|
||||
Reference in New Issue
Block a user