From 0de5fef7e9947bfda1ec35362fb1d0ff0a59c0af Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Fri, 1 Apr 2022 10:37:20 +0100 Subject: [PATCH] Added a hacky margin between items and remove the transition to make it feel snappier --- app/components/SearchPalette.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/app/components/SearchPalette.tsx b/app/components/SearchPalette.tsx index ad4ff4d..b92fc3e 100644 --- a/app/components/SearchPalette.tsx +++ b/app/components/SearchPalette.tsx @@ -50,7 +50,7 @@ export function SearchPalette({ const rowVirtualizer = useVirtual({ size: (searchState.results ?? []).length, parentRef: listRef, - estimateSize: useCallback(() => 70, []), + estimateSize: useCallback(() => 62, []), overscan: 6, }); @@ -144,9 +144,13 @@ export function SearchPalette({