Globe: Temporary fix for responsive sizing, Add correct margins top/bottom
All checks were successful
continuous-integration/drone/push Build is passing

- Ideally the globe would have to get the size within its container (.globe), set via CSS and not on the window
This commit is contained in:
2020-04-19 20:13:01 +02:00
parent 9220e6cf8d
commit 1cddc26625
7 changed files with 68 additions and 65 deletions

View File

@@ -52,6 +52,7 @@
// Props and Variables
export let photos = ''
const { page } = stores()
let winWidth = 0
// Reset current location if existing
currentLocation.set()
@@ -78,6 +79,8 @@
/>
</svelte:head>
<svelte:window bind:innerWidth={winWidth} />
<main class="housesof" class:is-transitioning={!$pageReady}>
<section class="intro">
<div class="anim-mask">
@@ -117,7 +120,11 @@
{#if process.browser}
<Lazy offset={window.innerHeight}>
<InteractiveGlobe />
<InteractiveGlobe size={
(winWidth <= 768) ? 0.96 :
(winWidth <= 992) ? 0.6 :
0.575}
/>
</Lazy>
{/if}