From 09954c06d8970f27ad14f8b30ed14cf357a1fa5e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 24 May 2022 19:21:27 -0700 Subject: Use fixed positions --- modern/src/login/LoginLayout.js | 2 +- modern/src/main/MainPage.js | 4 ++-- modern/src/other/ReplayPage.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modern/src/login/LoginLayout.js b/modern/src/login/LoginLayout.js index 4d86d2f6..f3a688ef 100644 --- a/modern/src/login/LoginLayout.js +++ b/modern/src/login/LoginLayout.js @@ -40,7 +40,7 @@ const useStyles = makeStyles((theme) => ({ width: '100%', }, attribution: { - position: 'absolute', + position: 'fixed', bottom: theme.spacing(1), right: theme.spacing(1.5), fontSize: 'x-small', diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index c33df655..29aaf1aa 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -39,7 +39,7 @@ const useStyles = makeStyles((theme) => ({ sidebar: { display: 'flex', flexDirection: 'column', - position: 'absolute', + position: 'fixed', left: 0, top: 0, zIndex: 3, @@ -87,7 +87,7 @@ const useStyles = makeStyles((theme) => ({ transform: 'translateX(-50%)', }, sidebarToggle: { - position: 'absolute', + position: 'fixed', left: theme.spacing(1.5), top: theme.spacing(3), borderRadius: '0px', diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index 9277cee8..b217b374 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -28,7 +28,7 @@ const useStyles = makeStyles((theme) => ({ sidebar: { display: 'flex', flexDirection: 'column', - position: 'absolute', + position: 'fixed', zIndex: 3, left: 0, top: 0, -- cgit v1.2.3