Skip to content

Commit

Permalink
fix: break word for case of long layer title
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta committed Mar 6, 2023
1 parent 27a9827 commit 5cf0c91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scss/ui/helpers/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,7 @@ $text-fade-background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(25
height: $text-height-smallest;
}
}

.break-word {
word-wrap: break-word;
}
2 changes: 1 addition & 1 deletion src/controls/legend/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const OverlayLayer = function OverlayLayer(options) {
});
},
render() {
const labelCls = 'text-smaller padding-x-small grow pointer no-select overflow-hidden basis-50';
const labelCls = 'text-smaller padding-x-small grow pointer no-select overflow-hidden basis-50 break-word';
return `<div id="${this.getId()}" class="${labelCls}">${title}</div>`;
}
});
Expand Down

0 comments on commit 5cf0c91

Please sign in to comment.