Skip to content

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

[Fix] Datasets attribution width styling (#2149)

Igor Dykhta1fd7bad0ed0a
diff --git a/src/components/src/common/styled-components.tsx b/src/components/src/common/styled-components.tsx
index a10847f3f..0a4fc931a 100644
--- a/src/components/src/common/styled-components.tsx
+++ b/src/components/src/common/styled-components.tsx
@@ -551,6 +551,7 @@ export const StyledAttrbution = styled.div.attrs({
.attrition-link {
display: flex;
align-items: center;
+ margin-left: 10px;
a {
margin-right: 2px;
diff --git a/src/components/src/map-container.tsx b/src/components/src/map-container.tsx
index 4b330794e..2af545ec8 100644
--- a/src/components/src/map-container.tsx
+++ b/src/components/src/map-container.tsx
@@ -142,7 +142,7 @@ interface StyledDatasetAttributionsContainerProps {
}
const StyledDatasetAttributionsContainer = styled.div<StyledDatasetAttributionsContainerProps>`
- width: ${props => (props.isPalm ? '130px' : '180px')};
+ max-width: ${props => (props.isPalm ? '130px' : '180px')};
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;