Skip to content

Commit

Permalink
Merge pull request origo-map#1704 from origo-map/break-word
Browse files Browse the repository at this point in the history
Break word
  • Loading branch information
johnnyblasta committed Mar 6, 2023
2 parents 602be73 + 5cf0c91 commit 7d0edc3
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 7d0edc3

Please sign in to comment.