From 9535296919fa00a1b56a2a799e84ed187be20ecb Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Fri, 21 Nov 2025 08:39:40 +0100 Subject: [PATCH] chore: show all lucide icons --- components/SettingsUI/LucideIconPicker.tsx | 11 +++++++++-- styles/components/settings.css | 13 ++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/components/SettingsUI/LucideIconPicker.tsx b/components/SettingsUI/LucideIconPicker.tsx index 641db9e..a3c7b40 100644 --- a/components/SettingsUI/LucideIconPicker.tsx +++ b/components/SettingsUI/LucideIconPicker.tsx @@ -19,7 +19,7 @@ export interface LucideIconPickerProps { maxResults?: number; } -const DEFAULT_MAX_RESULTS = 80; +const DEFAULT_MAX_RESULTS = Infinity; export const LucideIconPicker: React.FC = ({ value = "", @@ -53,7 +53,10 @@ export const LucideIconPicker: React.FC = ({ const matches = normalized.length ? iconIds.filter((name) => name.toLowerCase().includes(normalized)) : iconIds; - return matches.slice(0, maxResults); + if (Number.isFinite(maxResults)) { + return matches.slice(0, maxResults); + } + return matches; }, [iconIds, maxResults, query]); const closePicker = useCallback(() => { @@ -164,6 +167,10 @@ export const LucideIconPicker: React.FC = ({ placeholder="Search Lucide icons…" className="lucide-icon-picker__search" /> +
+ Showing {filteredIcons.length} of{" "} + {iconIds.length} icons +
{filteredIcons.map((iconName) => (