Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Fix] Datasets and basemap attributions separated by "|" (#2150)
Igor Dykhtace4e5c7e0c41
diff --git a/src/components/src/common/styled-components.tsx b/src/components/src/common/styled-components.tsxindex 0a4fc931a..fb12cfe5e 100644--- a/src/components/src/common/styled-components.tsx+++ b/src/components/src/common/styled-components.tsx@@ -553,9 +553,15 @@ export const StyledAttrbution = styled.div.attrs({align-items: center;margin-left: 10px;- a {+ a,+ .pipe-separator {margin-right: 2px;}++ .pipe-separator {+ text-decoration: none;+ color: ${props => props.theme.labelColor};+ }}.attrition-logo {@@ -570,7 +576,8 @@ export const StyledAttrbution = styled.div.attrs({margin-left: 4px;}}- a {+ a,+ .pipe-separator {font-size: 10px;}diff --git a/src/components/src/map-container.tsx b/src/components/src/map-container.tsxindex 2af545ec8..469560532 100644--- a/src/components/src/map-container.tsx+++ b/src/components/src/map-container.tsx@@ -190,6 +190,7 @@ export const Attribution = ({<DatasetAttributions datasetAttributions={datasetAttributions} isPalm={isPalm} />{showOsmBasemapAttribution ? (<div className="attrition-link">+ {datasetAttributions?.length ? <span className="pipe-separator">|</span> : null}<ahref="http://www.openstreetmap.org/copyright"target="_blank"@@ -209,6 +210,7 @@ export const Attribution = ({<EndHorizontalFlexbox><DatasetAttributions datasetAttributions={datasetAttributions} isPalm={isPalm} /><div className="attrition-link">+ {datasetAttributions?.length ? <span className="pipe-separator">|</span> : null}{isPalm ? <MapboxLogo /> : null}<a href="https://kepler.gl/policy/" target="_blank" rel="noopener noreferrer">© kepler.gl |{' '}