Client - minor style change
This commit is contained in:
parent
aade621030
commit
a413ff35ae
@ -1,4 +1,4 @@
|
||||
# Sphinx build info version 1
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: e4cbf332e74dbde7ce09fba56082bd68
|
||||
config: a620d1aa2f67ef17ac8cd190e5ec02f2
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
@ -363,9 +363,9 @@ label {
|
||||
}
|
||||
|
||||
.map-attribution {
|
||||
bottom: 0;
|
||||
font-size: 11px;
|
||||
position:relative;
|
||||
top: -15px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.map-attribution-text {
|
||||
|
@ -5,17 +5,14 @@ import { apiUrl } from '../../utils'
|
||||
export default class StaticMap extends React.PureComponent {
|
||||
render() {
|
||||
const { activity, display } = this.props
|
||||
const attributionStyle =
|
||||
display === 'list' ? 'map-attribution-list' : 'map-attribution text-right'
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={`activity-map${display === 'list' ? '-list' : ''}`}>
|
||||
<img
|
||||
className="activity-map"
|
||||
src={`${apiUrl}activities/map/${activity.map}?${Date.now()}`}
|
||||
alt="activity map"
|
||||
/>
|
||||
<div className={attributionStyle}>
|
||||
<div className={`map-attribution${display === 'list' ? '-list' : ''}`}>
|
||||
<span className="map-attribution-text">©</span>
|
||||
<a
|
||||
className="map-attribution-text"
|
||||
@ -26,7 +23,7 @@ export default class StaticMap extends React.PureComponent {
|
||||
OpenStreetMap
|
||||
</a>
|
||||
</div>
|
||||
</>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user