From 5b10d4de596a7e53222b1cb1f3c7f837c99d9676 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 14 Jan 2022 17:23:51 +1100 Subject: [PATCH] Mobile fix --- src/pages/Nodes/Sidebar.tsx | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/src/pages/Nodes/Sidebar.tsx b/src/pages/Nodes/Sidebar.tsx index c56ea0a2..c40494f9 100644 --- a/src/pages/Nodes/Sidebar.tsx +++ b/src/pages/Nodes/Sidebar.tsx @@ -30,7 +30,7 @@ export const Sidebar = ({ node, closeSidebar }: SidebarProps): JSX.Element => { }); return ( -
+
@@ -73,12 +73,33 @@ export const Sidebar = ({ node, closeSidebar }: SidebarProps): JSX.Element => {
- Content 1 - -
+ Content 1 + + {node.currentPosition && ( +
+
+ {(node.currentPosition.latitudeI / 1e7).toPrecision(6)}, + {(node.currentPosition?.longitudeI / 1e7).toPrecision(6)} +
+ { + setToCopy( + node.currentPosition + ? `${node.currentPosition.latitudeI / 1e7},${ + node.currentPosition.longitudeI / 1e7 + }` + : '', + ); + setCopied(); + }} + icon={isCopied ? : } + /> +
+ )}
- Content 3 - Remote Administration + Content 3 + Remote Administration
{ icon={isCopied ? : } />
- +