fix(frontend): fix iframe scrollbar issue by using 100% instead of 100vw/vh and setting html/body/root to 100% height
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body, #root {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
}
|
||||
|
||||
@@ -3,9 +3,10 @@ function Earth() {
|
||||
<iframe
|
||||
src="/earth/index.html"
|
||||
style={{
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
border: 'none',
|
||||
display: 'block',
|
||||
}}
|
||||
title="3D Earth"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user