Skip to content

Commit

Permalink
Added ellipsis and title for overflow legend text
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroberts committed Jul 13, 2023
1 parent f0c0319 commit 9d5d3a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/essence/Tools/Legend/LegendTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ function drawLegends(tools, _legend, layerUUID, display_name, opacity) {
.style('height', '100%')
.style('line-height', '19px')
.style('font-size', '14px')
.style('overflow', 'auto')
.style('overflow', 'hidden')
.style('white-space', 'nowrap')
.style('max-width', '270px')
.style('text-overflow', 'ellipsis')
.attr('title', _legend[d].value)
.text(_legend[d].value)
} else if (shape == 'continuous' || shape == 'discreet') {
if (lastShape != shape) {
Expand Down

0 comments on commit 9d5d3a9

Please sign in to comment.