Skip to content

Commit

Permalink
[Fix] Datasets and basemap attributions separated by "|" (#2150)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorDykhta committed Mar 5, 2023
1 parent 1fd7bad commit ce4e5c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/src/common/styled-components.tsx
Expand Up @@ -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 {
Expand All @@ -570,7 +576,8 @@ export const StyledAttrbution = styled.div.attrs({
margin-left: 4px;
}
}
a {
a,
.pipe-separator {
font-size: 10px;
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/src/map-container.tsx
Expand Up @@ -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}
<a
href="http://www.openstreetmap.org/copyright"
target="_blank"
Expand All @@ -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 |{' '}
Expand Down

0 comments on commit ce4e5c7

Please sign in to comment.