Remove fixed positioning from footer component (#325)

This commit is contained in:
Jonas Schell 2024-09-12 16:28:46 +02:00 committed by GitHub
parent dad25ad9b0
commit aa9ce71ae8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 10 deletions

View File

@ -63,7 +63,7 @@ export function PageClientImpl(props: {
const handlePreJoinError = React.useCallback((e: any) => console.error(e), []); const handlePreJoinError = React.useCallback((e: any) => console.error(e), []);
return ( return (
<main data-lk-theme="default"> <main data-lk-theme="default" style={{ height: '100%' }}>
{connectionDetails === undefined || preJoinChoices === undefined ? ( {connectionDetails === undefined || preJoinChoices === undefined ? (
<div style={{ display: 'grid', placeItems: 'center', height: '100%' }}> <div style={{ display: 'grid', placeItems: 'center', height: '100%' }}>
<PreJoin <PreJoin

View File

@ -1,11 +1,12 @@
.main { .main {
position: relative;
display: grid; display: grid;
gap: 1rem; gap: 1rem;
justify-content: center; justify-content: center;
place-content: center; place-content: center;
justify-items: center; justify-items: center;
padding-bottom: 100px;
overflow: auto; overflow: auto;
flex-grow: 1;
} }
.tabContainer { .tabContainer {

View File

@ -10,17 +10,16 @@ html {
html, html,
body { body {
overflow: hidden; overflow: hidden;
}
html,
body,
#__next,
main {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0px; margin: 0px;
} }
body {
display: flex;
flex-direction: column;
}
.header { .header {
max-width: 500px; max-width: 500px;
padding-inline: 2rem; padding-inline: 2rem;
@ -43,8 +42,6 @@ main {
} }
footer { footer {
position: absolute;
bottom: 0;
width: 100%; width: 100%;
padding: 1.5rem 2rem; padding: 1.5rem 2rem;
text-align: center; text-align: center;