From d30db401591460d3509ef78a69251d6afc1e7d9d Mon Sep 17 00:00:00 2001 From: plebeius Date: Tue, 18 Nov 2025 16:42:48 +0100 Subject: [PATCH] feat(board buttons): add vote button to mobile --- src/components/board-buttons/board-buttons.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/board-buttons/board-buttons.tsx b/src/components/board-buttons/board-buttons.tsx index 33b5c4ba..7c9836be 100644 --- a/src/components/board-buttons/board-buttons.tsx +++ b/src/components/board-buttons/board-buttons.tsx @@ -300,11 +300,17 @@ export const MobileBoardButtons = () => { const { filteredCount, searchText } = useCatalogFiltersStore(); + // Check if we should show the vote button (only for directory boards) + const defaultSubplebbits = useDefaultSubplebbits(); + const boardIdentifier = params.boardIdentifier || params.subplebbitAddress; + const showVoteButton = boardIdentifier && isDirectoryBoard(boardIdentifier, defaultSubplebbits); + return (
{isInPostView || isInPendingPostPage ? ( <> + {showVoteButton && }
@@ -319,6 +325,7 @@ export const MobileBoardButtons = () => { ) : ( )} + {showVoteButton && } {!(isInAllView || isInSubscriptionsView || isInModView) && } {isInCatalogView && searchText ? (