Add NSFW/SFW board filter to /all/ board page on mobile (#1071)

* feat(board-buttons): add NSFW/SFW filter to /all/ board page on mobile

* refactor(board-buttons): extract MobileAllFeedFilter padding to CSS class
This commit is contained in:
Tommaso Casaburi
2026-03-12 18:33:04 +08:00
committed by GitHub
parent aca0eef50e
commit abf6727212
4 changed files with 16 additions and 2 deletions
@@ -50,6 +50,10 @@
padding: 10px 0;
}
.mobileAllFeedFilterPadding {
padding-bottom: 15px;
}
.desktopBoardButtons {
text-transform: capitalize;
}
@@ -364,6 +364,15 @@ const AllFeedFilter = () => {
);
};
export const MobileAllFeedFilter = () => (
<div className={styles.mobileBoardButtons}>
<hr />
<div className={`${styles.options} ${styles.mobileAllFeedFilterPadding}`}>
<AllFeedFilter />
</div>
</div>
);
export const MobileBoardButtons = () => {
const { t } = useTranslation();
const params = useParams();
+1 -1
View File
@@ -1 +1 @@
export { MobileBoardButtons, DesktopBoardButtons } from './board-buttons';
export { MobileAllFeedFilter, MobileBoardButtons, DesktopBoardButtons } from './board-buttons';