mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 05:56:10 +05:00
more pwa styles added
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user