mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(app): prevent scrollbar glitch on board layout routes, also hiding unnecessary scrollbar in home
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.boardLayout {
|
||||
overflow-y: hidden;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.app {
|
||||
padding: 5px;
|
||||
|
||||
+2
-2
@@ -24,7 +24,7 @@ const BoardLayout = () => {
|
||||
const key = `${subplebbitAddress}-${location.pathname}`;
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles.boardLayout}>
|
||||
<BoardNav />
|
||||
<BoardBanner />
|
||||
<MobileBoardButtons />
|
||||
@@ -32,7 +32,7 @@ const BoardLayout = () => {
|
||||
<SubplebbitStats />
|
||||
<DesktopBoardButtons />
|
||||
<Outlet />
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 (
|
||||
<div className={styles.box}>
|
||||
<div className={`${styles.boxBar} ${styles.color2ColorBar}`}>
|
||||
|
||||
Reference in New Issue
Block a user