Keep statistics charts clear of the footer

Use a full-height flex layout and normal footer flow so long chart content scrolls without overlapping the footer. Keep the page gradient fixed while scrolling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
leanderandCopilot committed 2026-10-22 04:54:28 +02:00
1 parent 9ad7b8aa28
commit 4d64126581
3 files changed
+10 -5

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
.app { .app {
flex: 1 0 auto;
max-width: 1220px; max-width: 1220px;
margin: 1rem auto; margin: 1rem auto;
} }
+2 -4
View File
@@ -1,8 +1,6 @@
.footer { .footer {
position: absolute; flex-shrink: 0;
right: 0; padding: 0 0 1rem;
bottom: 1rem;
left: 0;
height: 20px; height: 20px;
color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.5);
font-size: 0.8rem; font-size: 0.8rem;
+7 -1
View File
@@ -14,13 +14,18 @@
html, html,
body { body {
width: 100%; width: 100%;
height: 100%; min-height: 100%;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
html { html {
box-sizing: border-box; box-sizing: border-box;
} }
#root {
display: flex;
min-height: 100vh;
flex-direction: column;
}
*, *,
*:before, *:before,
*:after { *:after {
@@ -30,6 +35,7 @@ html {
/* Body and interitable styles */ /* Body and interitable styles */
body { body {
background: linear-gradient(rgba(0, 0, 0, 0.8) 60%, var(--background) 100%); background: linear-gradient(rgba(0, 0, 0, 0.8) 60%, var(--background) 100%);
background-attachment: fixed;
background-color: var(--background); background-color: var(--background);
color: var(--text); color: var(--text);
font-family: var(--font-family); font-family: var(--font-family);