diff --git a/src/components/dialogs/CancelDialog.jsx b/src/components/dialogs/CancelDialog.jsx index b1736ed..131a360 100644 --- a/src/components/dialogs/CancelDialog.jsx +++ b/src/components/dialogs/CancelDialog.jsx @@ -12,9 +12,6 @@ type Props = { export class CancelDialog extends React.Component { cancel = () => { this.props.stopEditing(); - // editor.cancelEditing(); - // this.props.setEditing(false); - // this.props.setMode(MODES.NONE); }; proceed = () => { @@ -31,6 +28,9 @@ export class CancelDialog extends React.Component {
Закрыть редактор?
+ +
+
Удалить измения diff --git a/src/components/dialogs/RouterDialog.jsx b/src/components/dialogs/RouterDialog.jsx index 08f48cf..a105545 100644 --- a/src/components/dialogs/RouterDialog.jsx +++ b/src/components/dialogs/RouterDialog.jsx @@ -9,54 +9,71 @@ type Props = { } const noPoints = ({ routerCancel }: Props) => ( -
-
- -
- Укажите первую точку на карте + +
+
+ +
+ Укажите первую точку на карте +
-
-
- Отмена +
+
+
+
+ Отмена +
-
+ ); const firstPoint = ({ routerCancel }: Props) => ( -
-
- -
УКАЖИТЕ СЛЕДУЮЩУЮ ТОЧКУ
-
-
-
- Отмена + +
+
+ +
УКАЖИТЕ СЛЕДУЮЩУЮ ТОЧКУ
-
+
+
+
+
+ Отмена +
+
+
+ ); const draggablePoints = ({ routerCancel, routerSubmit }: Props) => ( -
-
- -
Продолжайте маршрут
-
-
-
- Отмена -
-
- Применить + +
+
+ +
Продолжайте маршрут
-
+
+
+
+
+ Отмена +
+
+ Применить +
+
+
+ ); -export const RouterDialog = ({ routerPoints, routerCancel, routerSubmit, width }: Props) => ( -
+export const RouterDialog = ({ + routerPoints, routerCancel, routerSubmit, width +}: Props) => ( +
{!routerPoints && noPoints({ routerCancel })} {routerPoints === 1 && firstPoint({ routerCancel })} {routerPoints >= 2 && draggablePoints({ routerCancel, routerSubmit })} diff --git a/src/components/dialogs/TrashDialog.jsx b/src/components/dialogs/TrashDialog.jsx index ff100c8..e60021a 100644 --- a/src/components/dialogs/TrashDialog.jsx +++ b/src/components/dialogs/TrashDialog.jsx @@ -13,13 +13,15 @@ type Props = { export const TrashDialog = ({ clearPoly, clearStickers, clearAll, clearCancel, width, }: Props) => ( -
+
Удалить:
-
+
+
+
Маршрут @@ -31,6 +33,7 @@ export const TrashDialog = ({ ВСЕ
+
Отмена
diff --git a/src/styles/panel.less b/src/styles/panel.less index 9471caa..4f3c1b0 100644 --- a/src/styles/panel.less +++ b/src/styles/panel.less @@ -235,6 +235,18 @@ } } + .helper:first-child { + border-radius: @panel_radius @panel_radius 0 0; + } + + .helper:last-child { + border-radius: 0 0 @panel_radius @panel_radius; + } + + .helper:only-child { + border-radius: @panel_radius; + } + } .control-dialog-provider { @@ -255,7 +267,7 @@ display: flex; background: #222222; - border-radius: @panel_radius; + //border-radius: @panel_radius; box-shadow: @bar_shadow; @media (max-width: @mobile_breakpoint) { @@ -304,6 +316,10 @@ } } +.flex_1 { + flex: 1; +} + .helper__buttons { display: flex; align-items: center;