diff --git a/src/utils/style-formatter.js b/src/utils/style-formatter.js index 65c9788c..c7afa781 100644 --- a/src/utils/style-formatter.js +++ b/src/utils/style-formatter.js @@ -78,6 +78,9 @@ export default { // label const textSpan = document.createElement('span'); textSpan.textContent = style.label; + textSpan.style.whiteSpace = 'nowrap'; + textSpan.style.textOverflow = 'ellipsis'; + textSpan.style.overflow = 'hidden'; style.font.style.underline && (textSpan.style.textDecoration = 'underline'); text.appendChild(textSpan); // icon