From 61f23443ca6c2d48b9fdddce7e78ef948bb5ca6a Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sun, 5 May 2024 15:55:24 +0200 Subject: [PATCH] fix(app): prevent scrollbar glitch on board layout routes, also hiding unnecessary scrollbar in home --- src/app.module.css | 5 +++++ src/app.tsx | 4 ++-- src/views/home/home.tsx | 2 -- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app.module.css b/src/app.module.css index 83b697a9..98d8d6cf 100644 --- a/src/app.module.css +++ b/src/app.module.css @@ -2,6 +2,11 @@ z-index: 1; } +.boardLayout { + overflow-y: hidden; + min-height: 100vh; +} + @media (min-width: 640px) { .app { padding: 5px; diff --git a/src/app.tsx b/src/app.tsx index 9d4fbf33..60cb0ef9 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -24,7 +24,7 @@ const BoardLayout = () => { const key = `${subplebbitAddress}-${location.pathname}`; return ( - <> +
@@ -32,7 +32,7 @@ const BoardLayout = () => { - +
); }; diff --git a/src/views/home/home.tsx b/src/views/home/home.tsx index 4fc8f91c..05e0c124 100644 --- a/src/views/home/home.tsx +++ b/src/views/home/home.tsx @@ -344,8 +344,6 @@ const Stats = ({ multisub, subplebbitAddresses }: { multisub: any; subplebbitAdd const boardsTracked = Object.values(stats).filter((stat: any) => stat && !stat.loading).length; const enoughStats = boardsTracked >= multisub.length / 2; - console.log(stats); - return (