mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-23 05:02:21 +02:00
[eric] apps: template unclamps vertical scroll; body overflow:hidden was written for the splash and clipped every taller app (ENG-349)
This commit is contained in:
@@ -20,12 +20,13 @@
|
||||
same as the React PixelBlast component referenced in the design.
|
||||
-->
|
||||
<style>
|
||||
html, body, #root { height: 100%; margin: 0; }
|
||||
/* min-height (not height) + no body overflow clamp: apps taller than the card must scroll, the splash clips itself (ENG-349). */
|
||||
html, body { min-height: 100%; margin: 0; }
|
||||
#root { min-height: 100vh; }
|
||||
body {
|
||||
background: #1a1a1a;
|
||||
color: #f5f5f5;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
overflow: hidden;
|
||||
}
|
||||
.openswarm-splash {
|
||||
position: fixed;
|
||||
|
||||
@@ -18,10 +18,10 @@ const Home: React.FC = () => {
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'fixed',
|
||||
inset: 0,
|
||||
bgcolor: '#1a1a1a',
|
||||
position: 'relative',
|
||||
minHeight: '100vh',
|
||||
overflow: 'hidden',
|
||||
bgcolor: '#1a1a1a',
|
||||
}}
|
||||
>
|
||||
<PixelBlast
|
||||
|
||||
Reference in New Issue
Block a user