fixed body overflowing

This commit is contained in:
Ludwig Lehnert 2025-04-15 10:15:10 +02:00
parent 86227eadf4
commit d20d0a8e08
2 changed files with 12 additions and 5 deletions

View File

@ -2,8 +2,8 @@
<style> <style>
:global(html, body) { :global(html, body) {
min-width: 100%; min-width: 100vw;
min-height: 100%; min-height: max(100%, 100vh);
} }
:global(*) { :global(*) {
@ -19,5 +19,8 @@
#252547 99vh, #252547 99vh,
#252547 100vh #252547 100vh
); );
max-width: 100vw;
overflow-x: hidden;
} }
</style> </style>

View File

@ -13,8 +13,8 @@
.map((_, i) => i); .map((_, i) => i);
const points: [number, number][] = indices.map(() => [ const points: [number, number][] = indices.map(() => [
Math.random(), Math.max(0.02, Math.min(0.98, Math.random())),
Math.random(), Math.max(0.02, Math.min(0.98, Math.random())),
]); ]);
const sizes = indices.map(() => Math.max(Math.random(), 0.3) * 2); const sizes = indices.map(() => Math.max(Math.random(), 0.3) * 2);
@ -90,7 +90,6 @@
4500 + Math.random() * 2500, 4500 + Math.random() * 2500,
); );
console.log(d);
lidx = nidx; lidx = nidx;
return; return;
} }
@ -253,6 +252,11 @@
translate: -50% -50%; translate: -50% -50%;
} }
/* :global(#stars-lines) {
max-width: 100vw;
overflow-x: hidden;
} */
:global(#stars-lines line) { :global(#stars-lines line) {
transition-duration: 500ms; transition-duration: 500ms;
} }