diff --git a/src/components/board-buttons/board-buttons.tsx b/src/components/board-buttons/board-buttons.tsx
index 8b448620..8813af7d 100644
--- a/src/components/board-buttons/board-buttons.tsx
+++ b/src/components/board-buttons/board-buttons.tsx
@@ -12,6 +12,7 @@ import useFeedResetStore from '../../stores/use-feed-reset-store';
import useSortingStore from '../../stores/use-sorting-store';
import useAllFeedFilterStore from '../../stores/use-all-feed-filter-store';
import useModQueueStore from '../../stores/use-mod-queue-store';
+import useFeedViewSettingsStore from '../../stores/use-feed-view-settings-store';
import useCountLinksInReplies from '../../hooks/use-count-links-in-replies';
import useIsMobile from '../../hooks/use-is-mobile';
import useTimeFilter from '../../hooks/use-time-filter';
@@ -182,6 +183,18 @@ const AutoButton = () => {
);
};
+const BottomButton = () => {
+ const { t } = useTranslation();
+ const handleClick = () => {
+ window.scrollTo({ top: document.documentElement.scrollHeight, behavior: 'instant' });
+ };
+ return (
+
+ );
+};
+
const SortOptions = () => {
const { t } = useTranslation();
const { sortType, setSortType } = useSortingStore();
@@ -402,6 +415,8 @@ export const MobileBoardButtons = () => {
const subplebbitAddress = resolvedAddress || accountComment?.subplebbitAddress;
const { filteredCount, searchText } = useCatalogFiltersStore();
+ const enableInfiniteScroll = useFeedViewSettingsStore((state) => state.enableInfiniteScroll);
+ const showBottomButton = (isInCatalogView || isInPostView || isInPendingPostPage) && !enableInfiniteScroll;
// Check if we should show the vote button (only for directory boards)
const directories = useDirectories();
@@ -413,9 +428,8 @@ export const MobileBoardButtons = () => {
{isInPostView || isInPendingPostPage ? (
<>