From 16f5875adcd58ef6b4b0c1ff13e1d93c6cd1f1cf Mon Sep 17 00:00:00 2001 From: muerwre Date: Wed, 6 Feb 2019 14:26:50 +0700 Subject: [PATCH] stickers with empty text should not have blackbox at view mode --- src/components/StickerDesc.jsx | 3 ++- src/index.js | 48 +++++++++++++++++++--------------- src/styles/stickers.less | 4 +++ 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/src/components/StickerDesc.jsx b/src/components/StickerDesc.jsx index 38d361b..bef54eb 100644 --- a/src/components/StickerDesc.jsx +++ b/src/components/StickerDesc.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import classnames from 'classnames'; type State = { text: String, @@ -21,7 +22,7 @@ export class StickerDesc extends React.PureComponent { return (
diff --git a/src/index.js b/src/index.js index 08d0652..8f318d8 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,37 @@ /* + + todo fix save button should not react to clicks + todo fix loaded stickers has wrong text placement for right-sided captions + todo save spinner + todo cancelling editing someone's else map return back to it's original address /razminochnyj/ + + todo riding speed slider todo public maps todo editing map on map list todo setting map public on map list + todo tooltips for panel items + + done map catalogue + done public maps + done map search + todo map list lazy loading + + done better poly editor https://github.com/SupriyaSudhindra/leaflet-editable-polyline + done update after point delete + todo hidden markers tooltip + + todo network operations notify + done delayed notify (delay(2000).then(showLoadingMsg)) + todo network error notifications + todo check canvas support at startup + todo check osrm is up + + todo maybe: map preview on save + + done stickers with empty text should not have blackbox at view mode done add ability to copy-paste address after saving - todo save progress - todo cancelling editing someone's else map return back to it's original address /razminochnyj/ done hide sticker dialog on sticker selection done separate mode for sticker selection @@ -21,26 +46,7 @@ done better loader screen done network errors handling on startup - done map catalogue - done public maps - done map search - todo map list lazy loading - - todo tooltips - - done better poly editor https://github.com/SupriyaSudhindra/leaflet-editable-polyline - done update after point delete - todo hidden markers tooltip - done stickers drag on rotate bug - - todo network operations notify - done delayed notify (delay(2000).then(showLoadingMsg)) - todo network error notifications - todo check canvas support at startup - todo check osrm is up - - todo map preview on save */ import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/src/styles/stickers.less b/src/styles/stickers.less index 9dc0ad0..fdf82e7 100644 --- a/src/styles/stickers.less +++ b/src/styles/stickers.less @@ -42,6 +42,10 @@ .sticker-delete { display: none; } + + .sticker-desc.is_empty { + display: none; + } } }