Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix: added text-overflow (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseeborn authored Dec 2, 2019
1 parent 4e6d343 commit dcc2333
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/style-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcc2333

Please sign in to comment.