diff --git a/src/app/pages/client/explore/Server.tsx b/src/app/pages/client/explore/Server.tsx
index 1f493df17f..c757dd79b3 100644
--- a/src/app/pages/client/explore/Server.tsx
+++ b/src/app/pages/client/explore/Server.tsx
@@ -45,6 +45,7 @@ import { getMxIdServer } from '../../../utils/matrix';
import { stopPropagation } from '../../../utils/keyboard';
import { ScreenSize, useScreenSizeContext } from '../../../hooks/useScreenSize';
import { BackRouteHandler } from '../../../components/BackRouteHandler';
+// import { LimitWarning } from './LimitWarning';
const useServerSearchParams = (searchParams: URLSearchParams): ExploreServerPathSearchParams =>
useMemo(
@@ -260,6 +261,7 @@ function LimitButton({ limit, onLimitChange }: LimitButtonProps) {
if (!limitInput) return;
const newLimit = limitInput.value.trim();
if (!newLimit) return;
+ // my work here
onLimitChange(newLimit);
};
@@ -299,17 +301,27 @@ function LimitButton({ limit, onLimitChange }: LimitButtonProps) {
setLimit('96')} radii="Pill">
96
+ setLimit('10000')} radii="Pill">
+ Max
+
Custom Limit
) => {
+ if (parseInt(e.target.value) > 10000) {
+ e.target.value = e.target.value.slice(0, 4);
+ }
+ }}
step={1}
outlined
type="number"