From a0296f6332af21323944bdd366d6ba40a638fc54 Mon Sep 17 00:00:00 2001 From: muerwre Date: Tue, 19 Feb 2019 10:03:10 +0700 Subject: [PATCH] fixed ismobile at map dialog --- src/components/dialogs/MapListDialog.tsx | 4 ++-- src/index.tsx | 9 ++++----- src/styles/dialogs.less | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/dialogs/MapListDialog.tsx b/src/components/dialogs/MapListDialog.tsx index c13fb9e..cfa24f0 100644 --- a/src/components/dialogs/MapListDialog.tsx +++ b/src/components/dialogs/MapListDialog.tsx @@ -45,7 +45,7 @@ class Component extends React.Component { }; openRoute = (_id: string): void => { - if (isMobile) this.props.setDialogActive(false); + if (isMobile()) this.props.setDialogActive(false); pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`); }; @@ -55,7 +55,7 @@ class Component extends React.Component { const delta = scrollHeight - scrollTop - clientHeight; if ( - delta < 300 && + delta < 500 && this.props.routes.list.length < this.props.routes.limit && !this.props.routes.loading ) { diff --git a/src/index.tsx b/src/index.tsx index ea4a027..48b0428 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -12,18 +12,18 @@ ## FEATURES todo hide arrows on small zooms - todo hide stickers and route on small zooms (?) - todo selecting logo on crop - todo public maps + todo tooltips for panel items + + done public maps todo editing map on map list todo setting map public on map list done map catalogue done public maps done map search - todo map list lazy loading + done map list lazy loading todo network operations notify done delayed notify (delay(2000).then(showLoadingMsg)) @@ -31,7 +31,6 @@ todo check canvas support at startup todo check osrm is up - todo tooltips for panel items todo maybe: map preview on save todo maybe: stickers clusterization? diff --git a/src/styles/dialogs.less b/src/styles/dialogs.less index 33d0f05..932999b 100644 --- a/src/styles/dialogs.less +++ b/src/styles/dialogs.less @@ -117,8 +117,8 @@ } @keyframes pulse { - 0% { opacity: 0.5; } - 100% { opacity: 1; } + 0% { opacity: 0.3; } + 100% { opacity: 0.7; } } @keyframes spin {