more pwa styles added

This commit is contained in:
Daniel Shleifman
2022-06-19 18:42:04 +03:00
parent f4a9eee631
commit 12ce3299b8
16 changed files with 87 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
import { CreditCard as CreditCardIcon } from '@material-ui/icons'
import { useTranslation } from 'react-i18next'
import CloseServer from 'components/CloseServer'
import StyledMenuButtonWrapper from 'style/StyledMenuButtonWrapper'
import { StyledMenuButtonWrapper } from 'style/CustomMaterialUiStyles'
import AddDialogButton from 'components/Add'
import AboutDialog from 'components/About'
import SettingsDialogButton from 'components/Settings'

View File

@@ -1,12 +1,14 @@
import styled from 'styled-components'
export const pwaFooterHeight = 90
export default styled.div`
background: #575757;
color: #fff;
position: fixed;
bottom: 0;
width: 100%;
height: 90px;
height: ${pwaFooterHeight}px;
display: none;

View File

@@ -2,6 +2,8 @@ import { IconButton } from '@material-ui/core'
import { rgba } from 'polished'
import styled, { css } from 'styled-components'
import { pwaFooterHeight } from './PWAFooter/style'
export const AppWrapper = styled.div`
${({
theme: {
@@ -19,7 +21,7 @@ export const AppWrapper = styled.div`
@media screen and (display-mode: standalone) {
grid-template-columns: 0 1fr;
grid-template-rows: 90px 1fr 90px;
grid-template-rows: ${pwaFooterHeight}px 1fr ${pwaFooterHeight}px;
height: 100vh;
}
`}
@@ -50,7 +52,7 @@ export const AppHeader = styled.div`
padding: 7px 16px;
position: fixed;
width: 100%;
height: 90px;
height: ${pwaFooterHeight}px;
}
`}
`
@@ -105,7 +107,7 @@ export const TorrentListWrapper = styled.div`
}
@media screen and (display-mode: standalone) {
height: calc(100vh - 90px);
height: calc(100vh - ${pwaFooterHeight}px);
padding-bottom: 105px;
}
`