This commit is contained in:
Daniel Shleifman
2022-06-26 14:17:25 +03:00
parent 1b9203f8ea
commit 86df13a01c
2 changed files with 5 additions and 6 deletions

View File

@@ -29,9 +29,13 @@ export const AppWrapper = styled.div`
` `
export const CenteredGrid = styled.div` export const CenteredGrid = styled.div`
height: 100%;
display: grid; display: grid;
place-items: center; place-items: center;
${standaloneMedia(css`
height: 100vh;
width: 100vw;
`)}
` `
export const AppHeader = styled.div` export const AppHeader = styled.div`

View File

@@ -6,11 +6,6 @@ import NoServerConnection from './NoServerConnection'
import AddFirstTorrent from './AddFirstTorrent' import AddFirstTorrent from './AddFirstTorrent'
export default function TorrentList({ isOffline, isLoading, torrents }) { export default function TorrentList({ isOffline, isLoading, torrents }) {
return (
<CenteredGrid>
<AddFirstTorrent />
</CenteredGrid>
)
if (isLoading || isOffline || !torrents.length) { if (isLoading || isOffline || !torrents.length) {
return ( return (
<CenteredGrid> <CenteredGrid>