Skip to content

Commit

Permalink
📱(frontend) fix few layout issues
Browse files Browse the repository at this point in the history
For screen between xs and xsm, Dinum typography is creating
an overflow on mobile.

minHeight 'fit-content' is not working as expected on firefox.
  • Loading branch information
lebaudantoine committed Dec 3, 2024
1 parent 05b7436 commit 91a3aa4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/features/rooms/components/Join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Join = ({
const { user } = useUser()

return (
<Screen layout="centered">
<Screen layout="centered" footer={false}>
<CenteredContent title={t('join.heading')}>
<PreJoin
persistUserChoices
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/features/rooms/routes/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const FeedbackRoute = () => {
const { t } = useTranslation('rooms')
const [, setLocation] = useLocation()
return (
<Screen layout="centered">
<Screen layout="centered" footer={false}>
<Center>
<VStack>
<Heading>{t('feedback.heading')}</Heading>
Expand Down
10 changes: 3 additions & 7 deletions src/frontend/src/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const Footer = () => {
className={css({
borderTop: '2px solid rgb(0 0 145)',
paddingY: '2rem',
marginTop: { base: '50px', sm: '100px' },
})}
>
<InnerContainer>
Expand All @@ -145,20 +146,15 @@ export const Footer = () => {
height: '80px',
backgroundColor: 'rgb(77 77 77)',
width: '1px',
display: { base: 'none', xs: 'block' },
display: { base: 'none', sm: 'block' },
})}
/>
<p
className={css({
display: 'none',
fontWeight: '700',
fontFamily: 'Marianne',
xs: {
display: 'block',
fontSize: '0.75rem',
lineHeight: '1rem',
},
xsm: {
sm: {
display: 'block',
fontSize: '1rem',
lineHeight: '1.5rem',
Expand Down
6 changes: 4 additions & 2 deletions src/frontend/src/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ export const Layout = ({ children }: { children: ReactNode }) => {
<>
<div
className={css({
height: '100%',
display: 'flex',
minHeight: 'fit-content',
flexDirection: 'column',
backgroundColor: 'white',
color: 'default.text',
flex: '1',
})}
style={{
height: !showFooter ? '100%' : undefined,
}}
>
{showHeader && <Header />}
<main
Expand Down

0 comments on commit 91a3aa4

Please sign in to comment.