Skip to content

Commit 428a218

Browse files
authored
Merge pull request #1056 from cultuurnet/feature/III-6635
III-6635-Improve login page layout for XL screen size
2 parents fc723c8 + a6f125f commit 428a218

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/layouts/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const LayoutWrapper = ({ children }) => {
124124
asPath.startsWith('/404') ||
125125
asPath.startsWith('/500')
126126
) {
127-
return <>{children}</>;
127+
return <Inline height="100vh">{children}</Inline>;
128128
}
129129

130130
return (

src/pages/login/[language].page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,17 @@ const Index = () => {
304304
return (
305305
<Stack
306306
width="100%"
307+
height="100vh"
308+
display="flex"
309+
flexDirection="column"
307310
alignItems="center"
308311
spacing={6}
309312
backgroundColor={getValueForPage('backgroundColor')}
310313
>
311314
<Stack
312315
width="100%"
313-
height={isSmallView ? 'auto' : isXLargeView ? 900 : 800}
316+
height={isSmallView ? 'auto' : isXLargeView ? '100vh' : 800}
317+
flexShrink={0}
314318
>
315319
<Inline
316320
width="100%"

0 commit comments

Comments
 (0)