diff --git a/src/sass/_base.scss b/src/sass/_base.scss index c3f65a67..45af9e8e 100644 --- a/src/sass/_base.scss +++ b/src/sass/_base.scss @@ -45,7 +45,11 @@ body.homepage { padding-top: 4.30rem; &.authenticated { - padding-top: 4.50rem; + padding-top: 4.30rem; + } + + &.homepage { + padding-top: 0; } } } diff --git a/src/sass/_landingPage.scss b/src/sass/_landingPage.scss index 3124b9b3..4a324160 100644 --- a/src/sass/_landingPage.scss +++ b/src/sass/_landingPage.scss @@ -27,15 +27,15 @@ .animated-down-arrow { position: absolute; - bottom: 4rem; + bottom: 0.5rem; text-align: center; z-index: 5; img { - width: 3.0rem; - height: 3.0rem; + width: 2.75rem; + height: 2.75rem; margin: 0 auto !important; - opacity: 0.65; + opacity: 0.55; } } @@ -113,8 +113,8 @@ background-image: url(./assets/LandingPageGraphics/background_molecule_network_horizontal_wave.jpg); .section-content-container { - height: 65vh; - margin-top: -5.0rem; + height: 60vh; + margin-top: -3.0rem; padding-top: 15px; padding-bottom: 15px; diff --git a/src/setupTests.js b/src/setupTests.js index b8be4a7d..8abf8b5e 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,6 +1,8 @@ import { configure } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; +const crypto = require('crypto'); + configure({ adapter: new Adapter() }); require('jest-canvas-mock'); @@ -8,5 +10,19 @@ require('jest-canvas-mock'); jest.mock('react-chartjs-2', () => ({ Bar: () => null, Pie: () => null, - Doughnut: () => null + Doughnut: () => null, })); + +// fix for 'crypto.getRandomValues() not supported' error +Object.defineProperty(globalThis, 'crypto', { + value: { + getRandomValues: (arr) => crypto.randomBytes(arr.length), + }, +}); + +// fix for 'unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering' error +// when