📱(frontend) fix few layout issues
For screen between xs and xsm, Dinum typography is creating an overflow on mobile. minHeight 'fit-content' is not working as expected on firefox.
This commit is contained in:
@@ -13,7 +13,7 @@ export const Join = ({
|
|||||||
const { user } = useUser()
|
const { user } = useUser()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Screen layout="centered">
|
<Screen layout="centered" footer={false}>
|
||||||
<CenteredContent title={t('join.heading')}>
|
<CenteredContent title={t('join.heading')}>
|
||||||
<PreJoin
|
<PreJoin
|
||||||
persistUserChoices
|
persistUserChoices
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const FeedbackRoute = () => {
|
|||||||
const { t } = useTranslation('rooms')
|
const { t } = useTranslation('rooms')
|
||||||
const [, setLocation] = useLocation()
|
const [, setLocation] = useLocation()
|
||||||
return (
|
return (
|
||||||
<Screen layout="centered">
|
<Screen layout="centered" footer={false}>
|
||||||
<Center>
|
<Center>
|
||||||
<VStack>
|
<VStack>
|
||||||
<Heading>{t('feedback.heading')}</Heading>
|
<Heading>{t('feedback.heading')}</Heading>
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ export const Footer = () => {
|
|||||||
className={css({
|
className={css({
|
||||||
borderTop: '2px solid rgb(0 0 145)',
|
borderTop: '2px solid rgb(0 0 145)',
|
||||||
paddingY: '2rem',
|
paddingY: '2rem',
|
||||||
|
marginTop: { base: '50px', sm: '100px' },
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<InnerContainer>
|
<InnerContainer>
|
||||||
@@ -145,7 +146,7 @@ export const Footer = () => {
|
|||||||
height: '80px',
|
height: '80px',
|
||||||
backgroundColor: 'rgb(77 77 77)',
|
backgroundColor: 'rgb(77 77 77)',
|
||||||
width: '1px',
|
width: '1px',
|
||||||
display: { base: 'none', xs: 'block' },
|
display: { base: 'none', sm: 'block' },
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
<p
|
<p
|
||||||
@@ -153,12 +154,7 @@ export const Footer = () => {
|
|||||||
display: 'none',
|
display: 'none',
|
||||||
fontWeight: '700',
|
fontWeight: '700',
|
||||||
fontFamily: 'Marianne',
|
fontFamily: 'Marianne',
|
||||||
xs: {
|
sm: {
|
||||||
display: 'block',
|
|
||||||
fontSize: '0.75rem',
|
|
||||||
lineHeight: '1rem',
|
|
||||||
},
|
|
||||||
xsm: {
|
|
||||||
display: 'block',
|
display: 'block',
|
||||||
fontSize: '1rem',
|
fontSize: '1rem',
|
||||||
lineHeight: '1.5rem',
|
lineHeight: '1.5rem',
|
||||||
|
|||||||
@@ -22,13 +22,15 @@ export const Layout = ({ children }: { children: ReactNode }) => {
|
|||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
className={css({
|
className={css({
|
||||||
height: '100%',
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
minHeight: 'fit-content',
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
color: 'default.text',
|
color: 'default.text',
|
||||||
|
flex: '1',
|
||||||
})}
|
})}
|
||||||
|
style={{
|
||||||
|
height: !showFooter ? '100%' : undefined,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{showHeader && <Header />}
|
{showHeader && <Header />}
|
||||||
<main
|
<main
|
||||||
|
|||||||
Reference in New Issue
Block a user