From 5bd94eff56248a59f5ff4da9037aa19ff4033407 Mon Sep 17 00:00:00 2001 From: Misha Bragin Date: Thu, 23 Mar 2023 12:10:27 +0100 Subject: [PATCH] Fix add peer popup tab layout on mobile (#154) --- src/components/addpeer/AddPeerPopup.tsx | 5 ++++- src/views/Peers.tsx | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/addpeer/AddPeerPopup.tsx b/src/components/addpeer/AddPeerPopup.tsx index 05a7df05..9af5356a 100644 --- a/src/components/addpeer/AddPeerPopup.tsx +++ b/src/components/addpeer/AddPeerPopup.tsx @@ -32,6 +32,9 @@ export const AddPeerPopup: React.FC = ({ const [openTab, setOpenTab] = useState(detectOSTab); + const [width, setWidth] = useState(window.innerWidth); + const isMobile = width <= 768; + const items: TabsProps['items'] = [ { key: "1", @@ -78,7 +81,7 @@ export const AddPeerPopup: React.FC = ({ To get started install NetBird and log in using your {"\n"} email account. - { footer={[]} width={780} > - {/* */} {confirmModalContextHolder}