From 86df13a01c30e561612c5c39ec2a74595a2a62f9 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Sun, 26 Jun 2022 14:17:25 +0300 Subject: [PATCH] refactor --- web/src/components/App/style.js | 6 +++++- web/src/components/TorrentList/index.jsx | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/web/src/components/App/style.js b/web/src/components/App/style.js index 84428d8..fe63790 100644 --- a/web/src/components/App/style.js +++ b/web/src/components/App/style.js @@ -29,9 +29,13 @@ export const AppWrapper = styled.div` ` export const CenteredGrid = styled.div` - height: 100%; display: grid; place-items: center; + + ${standaloneMedia(css` + height: 100vh; + width: 100vw; + `)} ` export const AppHeader = styled.div` diff --git a/web/src/components/TorrentList/index.jsx b/web/src/components/TorrentList/index.jsx index ff49b4e..aae835c 100644 --- a/web/src/components/TorrentList/index.jsx +++ b/web/src/components/TorrentList/index.jsx @@ -6,11 +6,6 @@ import NoServerConnection from './NoServerConnection' import AddFirstTorrent from './AddFirstTorrent' export default function TorrentList({ isOffline, isLoading, torrents }) { - return ( - - - - ) if (isLoading || isOffline || !torrents.length) { return (