fix: fix podcasts page layout spacing on mobile

This commit is contained in:
Hossein Mehrabi 2023-08-28 15:47:47 +03:30
parent 33d2a3593d
commit dfbd96e649
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
2 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import PodcastsLists from '@/components/Podcasts/Podcasts.Lists'
import { uiConfigs } from '@/configs/ui.configs'
import styled from '@emotion/styled'
import { LPE } from '../types/lpe.types'
import { lsdUtils } from '../utils/lsd.utils'
interface Props {
shows: LPE.Podcast.Show[]
@ -71,8 +72,10 @@ const PodcastsBodyContainer = styled(GridItem)``
const PodcastsGrid = styled(Grid)`
width: 100%;
@media (max-width: 768px) {
margin-top: ${uiConfigs.navbarRenderedHeight + 80}px;
padding-top: 64px;
${(props) => lsdUtils.breakpoint(props.theme, 'xs', 'exact')} {
padding-top: 24px;
}
`

View File

@ -73,7 +73,7 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => {
}
PodcastShowPage.getLayout = function getLayout(page: ReactNode) {
return <DefaultLayout>{page}</DefaultLayout>
return <DefaultLayout mainProps={{ spacing: false }}>{page}</DefaultLayout>
}
export default PodcastShowPage