fixed ismobile at map dialog

This commit is contained in:
muerwre 2019-02-19 10:03:10 +07:00
parent 559d6c8d07
commit a0296f6332
3 changed files with 8 additions and 9 deletions

View file

@ -45,7 +45,7 @@ class Component extends React.Component<Props, State> {
}; };
openRoute = (_id: string): void => { openRoute = (_id: string): void => {
if (isMobile) this.props.setDialogActive(false); if (isMobile()) this.props.setDialogActive(false);
pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`); pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
}; };
@ -55,7 +55,7 @@ class Component extends React.Component<Props, State> {
const delta = scrollHeight - scrollTop - clientHeight; const delta = scrollHeight - scrollTop - clientHeight;
if ( if (
delta < 300 && delta < 500 &&
this.props.routes.list.length < this.props.routes.limit && this.props.routes.list.length < this.props.routes.limit &&
!this.props.routes.loading !this.props.routes.loading
) { ) {

View file

@ -12,18 +12,18 @@
## FEATURES ## FEATURES
todo hide arrows on small zooms todo hide arrows on small zooms
todo hide stickers and route on small zooms (?)
todo selecting logo on crop todo selecting logo on crop
todo public maps todo tooltips for panel items
done public maps
todo editing map on map list todo editing map on map list
todo setting map public on map list todo setting map public on map list
done map catalogue done map catalogue
done public maps done public maps
done map search done map search
todo map list lazy loading done map list lazy loading
todo network operations notify todo network operations notify
done delayed notify (delay(2000).then(showLoadingMsg)) done delayed notify (delay(2000).then(showLoadingMsg))
@ -31,7 +31,6 @@
todo check canvas support at startup todo check canvas support at startup
todo check osrm is up todo check osrm is up
todo tooltips for panel items
todo maybe: map preview on save todo maybe: map preview on save
todo maybe: stickers clusterization? todo maybe: stickers clusterization?

View file

@ -117,8 +117,8 @@
} }
@keyframes pulse { @keyframes pulse {
0% { opacity: 0.5; } 0% { opacity: 0.3; }
100% { opacity: 1; } 100% { opacity: 0.7; }
} }
@keyframes spin { @keyframes spin {