Client - fix activities list style & activity details display
This commit is contained in:
parent
de5c0ada6b
commit
38bbd61eba
@ -35,8 +35,9 @@ class ActivityCharts extends React.Component {
|
|||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
if (
|
if (
|
||||||
this.props.dataType === 'activity' &&
|
(this.props.dataType === 'activity' &&
|
||||||
prevProps.activity.id !== this.props.activity.id
|
prevProps.activity.id !== this.props.activity.id) ||
|
||||||
|
(this.props.dataType === 'activity' && prevProps.dataType === 'segment')
|
||||||
) {
|
) {
|
||||||
this.props.loadActivityData(this.props.activity.id)
|
this.props.loadActivityData(this.props.activity.id)
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,9 @@ class ActivityMap extends React.Component {
|
|||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
if (
|
if (
|
||||||
this.props.dataType === 'activity' &&
|
(this.props.dataType === 'activity' &&
|
||||||
prevProps.activity.id !== this.props.activity.id
|
prevProps.activity.id !== this.props.activity.id) ||
|
||||||
|
(this.props.dataType === 'activity' && prevProps.dataType === 'segment')
|
||||||
) {
|
) {
|
||||||
this.props.loadActivityGpx(this.props.activity.id)
|
this.props.loadActivityGpx(this.props.activity.id)
|
||||||
}
|
}
|
||||||
|
@ -131,25 +131,28 @@ label {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.activity-title:hover img {
|
.activity-title img {
|
||||||
border: 1px solid lightgrey;
|
border: 1px solid lightgrey;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
display:block;
|
display: none;
|
||||||
margin-left: 10px;
|
margin-left: 20px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.activity-title:hover .map-attribution-list {
|
.activity-title .map-attribution-list {
|
||||||
display:block;
|
display: none;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
margin-left: 10px;
|
margin-left: 20px;
|
||||||
position:relative;
|
position: absolute;
|
||||||
top: 0;
|
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.activity-title:hover img, .activity-title:hover .map-attribution-list {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.add-activity {
|
.add-activity {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user