Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 3ef9748

Browse files
committed
reduce max-width on grid labels, to allow better wrapping with long action names
Fixes #825
1 parent a5f582b commit 3ef9748

File tree

1 file changed

+1
-1
lines changed
  • app/plugins/modules/activation-visualizations/lib

1 file changed

+1
-1
lines changed

app/plugins/modules/activation-visualizations/lib/grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const _drawGrid = (options, {sidecar, leftHeader, rightHeader}, content, groupDa
283283

284284
// now that we know the width of the grid, adjust the width of the label
285285
if (zoomLevel === 0) {
286-
gridLabel.style.maxWidth = `${width * 8}vw`
286+
gridLabel.style.maxWidth = `${width * 2.75 * 1.1}vw` // 2.75vw is the width in table.css; 1.1x to give a bit of overflow
287287
}
288288

289289
// and try to make the gridDom mostly squarish

0 commit comments

Comments
 (0)