From 40a11297c025d609bcf29ae76dd9dcf898d7b1fd Mon Sep 17 00:00:00 2001
From: muerwre <gotham48@gmail.com>
Date: Fri, 24 Aug 2018 16:12:07 +0700
Subject: [PATCH] moved panel left

---
 src/components/panels/EditorPanel.jsx | 7 ++++---
 src/styles/panel.less                 | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/components/panels/EditorPanel.jsx b/src/components/panels/EditorPanel.jsx
index b6b6cf4..2581bd0 100644
--- a/src/components/panels/EditorPanel.jsx
+++ b/src/components/panels/EditorPanel.jsx
@@ -38,6 +38,9 @@ export class EditorPanel extends React.PureComponent {
               <span>РЕДАКТОР</span>
             </button>
           </div>
+        </div>
+
+        <div className="panel right">
           <div className="control-dist">
             {(totalDistance > 0)
               ?
@@ -48,12 +51,10 @@ export class EditorPanel extends React.PureComponent {
                   (estimateTime > 0) && (estimateTime > 0) && <span>{toHours(estimateTime)}</span>
                 }
               </React.Fragment>
-              : <div>Начните рисовать --&gt;</div>
+              : <div onClick={() => editor.changeMode(MODES.ROUTER)}>Начнать рисовать</div>
             }
           </div>
-        </div>
 
-        <div className="panel right">
           <div className="control-bar">
             <button
               className={classnames({ active: mode === MODES.ROUTER })}
diff --git a/src/styles/panel.less b/src/styles/panel.less
index dd05be7..5f416f4 100644
--- a/src/styles/panel.less
+++ b/src/styles/panel.less
@@ -11,7 +11,7 @@
   padding: 0 10px;
   display: flex;
   align-items: center;
-  border-radius: 0 3px 3px 0;
+  border-radius: 3px 0 0 3px;
   font-weight: 200;
   color: #cccccc;
   user-select: none;