mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
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:
@@ -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 @@
|
||||
export { MobileBoardButtons, DesktopBoardButtons } from './board-buttons';
|
||||
export { MobileAllFeedFilter, MobileBoardButtons, DesktopBoardButtons } from './board-buttons';
|
||||
|
||||
Reference in New Issue
Block a user