fix(boards-list): hide Multiboards section when filtering for worksafe boards

This commit is contained in:
plebeius
2025-11-13 12:23:59 +01:00
parent e91a0494ae
commit 594be88210
@@ -101,6 +101,7 @@ const BoardsList = ({ multisub }: { multisub: MultisubSubplebbit[] }) => {
const showOther = showAll || showWorksafeOnly; const showOther = showAll || showWorksafeOnly;
const showMisc = showAll || showNsfwOnly; const showMisc = showAll || showNsfwOnly;
const showAdult = showAll || showNsfwOnly; const showAdult = showAll || showNsfwOnly;
const showMultiboards = showAll || showNsfwOnly;
return ( return (
<div className={styles.box}> <div className={styles.box}>
@@ -605,6 +606,7 @@ const BoardsList = ({ multisub }: { multisub: MultisubSubplebbit[] }) => {
)} )}
{/* Column 6: Meta */} {/* Column 6: Meta */}
{showMultiboards && (
<div className={styles.boardsColumn}> <div className={styles.boardsColumn}>
<h3>Multiboards</h3> <h3>Multiboards</h3>
<NSFWBadge /> <NSFWBadge />
@@ -617,6 +619,7 @@ const BoardsList = ({ multisub }: { multisub: MultisubSubplebbit[] }) => {
</li> </li>
</ul> </ul>
</div> </div>
)}
</div> </div>
</div> </div>
); );