diff --git a/src/components/panels/EditorPanel.jsx b/src/components/panels/EditorPanel.jsx index 24f5da1..c53a104 100644 --- a/src/components/panels/EditorPanel.jsx +++ b/src/components/panels/EditorPanel.jsx @@ -42,9 +42,16 @@ export class EditorPanel extends React.PureComponent {
- {totalDistance} км - { - (estimateTime > 0) && (estimateTime > 0) && {toHours(estimateTime)} + {(totalDistance > 0) + ? + + {totalDistance} км + + { + (estimateTime > 0) && (estimateTime > 0) && {toHours(estimateTime)} + } + + :
Начните рисовать -->
}
diff --git a/src/sprites/icon.svg b/src/sprites/icon.svg index c2be3cd..aed375c 100644 --- a/src/sprites/icon.svg +++ b/src/sprites/icon.svg @@ -56,5 +56,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/sprites/icons_draft.svg b/src/sprites/icons_draft.svg index 0bf8b0f..86bf20a 100644 --- a/src/sprites/icons_draft.svg +++ b/src/sprites/icons_draft.svg @@ -26,11 +26,11 @@ borderopacity="1.0" inkscape:pageopacity="0" inkscape:pageshadow="2" - inkscape:zoom="11.313708" - inkscape:cx="5.084605" - inkscape:cy="9.8831408" + inkscape:zoom="1" + inkscape:cx="2.6244114" + inkscape:cy="33.722" inkscape:document-units="px" - inkscape:current-layer="svg8" + inkscape:current-layer="g5360" showgrid="false" inkscape:window-width="1920" inkscape:window-height="1036" @@ -326,7 +326,7 @@ + id="g5360"> { - const hrs = parseInt(Number(info)); - const min = Math.round((Number(info)-hrs) * 60); - return hrs+':'+min; -} + const hrs = parseInt(Number(info), 10); + const min = Math.round((Number(info) - hrs) * 60); + const lmin = min < 10 ? '0' + min : min; + return `${hrs}:${lmin}`; +};