Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bugfix: Create ellipsis when dataset name is a long name (#109)

Cory Trimmc981f59ae9ac
diff --git a/src/components/side-panel/source-data-catalog.js b/src/components/side-panel/source-data-catalog.js
index 52272b264..c2a993359 100644
--- a/src/components/side-panel/source-data-catalog.js
+++ b/src/components/side-panel/source-data-catalog.js
@@ -36,7 +36,7 @@ const DatasetTitle = styled.div`
color: ${props => props.theme.textColor};
display: flex;
align-items: flex-start;
-
+
.source-data-arrow {
height: 16px;
}
@@ -55,15 +55,24 @@ const DatasetTitle = styled.div`
}
}
`;
+
const DatasetTagWrapper = styled.div`
display: flex;
color: ${props => props.theme.textColor};
font-size: 11px;
letter-spacing: 0.2px;
-
+ overflow: auto;
+
.dataset-color {
+ flex-shrink: 0;
margin-top: 5px;
}
+
+ .dataset-name {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
`;
const DataTagAction = styled.div`