fix: long labels now truncate with ellipsis (#11400)

This commit is contained in:
Evan Rusackas 2020-10-22 18:35:37 -07:00 committed by GitHub
parent 2f0c1a8402
commit d64260fc0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ export interface LabelProps {
const SupersetLabel = styled(BootstrapLabel)`
/* un-bunch them! */
margin-right: ${({ theme }) => theme.gridUnit}px;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:first-of-type {
margin-left: 0;