diff --git a/src/molecules/InteractiveGlobe.svelte b/src/molecules/InteractiveGlobe.svelte index 0253738..6d793c5 100644 --- a/src/molecules/InteractiveGlobe.svelte +++ b/src/molecules/InteractiveGlobe.svelte @@ -41,8 +41,10 @@ containerTop = getPosition(scope).top containerHeight = scope.clientHeight } - globe.resize() - globe.update() + if (globe) { + globe.resize() + globe.update() + } onScroll() } diff --git a/src/style/pages/_homepage.scss b/src/style/pages/_homepage.scss index f435b3a..6030e76 100644 --- a/src/style/pages/_homepage.scss +++ b/src/style/pages/_homepage.scss @@ -120,7 +120,7 @@ margin-left: -60px; @include breakpoint (sm) { - margin-top: -224px; + margin-top: -184px; } span:nth-of-type(1) {