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

fix: added text-overflow #86

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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