diff --git a/ui/src/Components/NavBar/FilterInput/History.js b/ui/src/Components/NavBar/FilterInput/History.js
index 77d18ed1f..829ac429b 100644
--- a/ui/src/Components/NavBar/FilterInput/History.js
+++ b/ui/src/Components/NavBar/FilterInput/History.js
@@ -17,6 +17,7 @@ import { faTrash } from "@fortawesome/free-solid-svg-icons/faTrash";
import { AlertStore } from "Stores/AlertStore";
import { Settings } from "Stores/Settings";
+import { IsMobile } from "Common/Device";
import { DropdownSlide } from "Components/Animations/DropdownSlide";
import { HistoryLabel } from "Components/Labels/HistoryLabel";
import { useOnClickOutside } from "Hooks/useOnClickOutside";
@@ -62,6 +63,8 @@ const HistoryMenu = ({
afterClick,
onClear,
}) => {
+ const maxItems = IsMobile() ? 4 : 8;
+
return (
Empty
) : (
- filters.map((historyFilters) => (
+ filters.slice(0, maxItems).map((historyFilters) => (