From dcc23334b0707f53757ed9b656c6f330684ce319 Mon Sep 17 00:00:00 2001 From: Elise Date: Mon, 2 Dec 2019 12:50:30 +0100 Subject: [PATCH] fix: added text-overflow (#86) --- src/utils/style-formatter.js | 3 +++ 1 file changed, 3 insertions(+) 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