Skip to content

Commit

Permalink
Merge pull request #706 from UTDNebula/NP-71
Browse files Browse the repository at this point in the history
NP 71 Scroll Functionality in Course Search
  • Loading branch information
cubetastic33 authored Oct 10, 2023
2 parents 380930a + da792db commit c3943a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/planner/Sidebar/DraggableCourseList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface DraggableCourseListProps {
function DraggableCourseList({ courses, getDragId }: DraggableCourseListProps) {
// Add sorting logic here
return (
<div className="flex flex-col gap-y-4 bg-white text-[#757575]">
<div className="flex max-h-64 flex-col gap-y-4 overflow-scroll bg-white text-[#757575]">
{courses.length > 0 ? (
courses.map((course, idx) => (
<DraggableSidebarCourseItem dragId={getDragId(course)} key={idx} course={course} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/planner/useFuse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function useFuse<T>({ dataSet, keys, threshold = 0.4 }: IUseSearc
}, [dataSet, keys, threshold]);

const updateQuery = (query: string) => {
setResults(fuse.search(query, { limit: 5 }).map((fuseResult) => fuseResult.item));
setResults(fuse.search(query, { limit: 100 }).map((fuseResult) => fuseResult.item));
};

/* const results = useMemo(() => {
Expand Down

0 comments on commit c3943a5

Please sign in to comment.