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;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html, body, #root {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,10 @@ function Earth() {
|
|||||||
<iframe
|
<iframe
|
||||||
src="/earth/index.html"
|
src="/earth/index.html"
|
||||||
style={{
|
style={{
|
||||||
width: '100vw',
|
width: '100%',
|
||||||
height: '100vh',
|
height: '100%',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
|
display: 'block',
|
||||||
}}
|
}}
|
||||||
title="3D Earth"
|
title="3D Earth"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user