Fix scrolling issue with code results & preview

This commit is contained in:
bkellam 2024-08-28 12:30:09 -07:00
parent be1bbfc16e
commit e287c8e02c
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ export default function Home() {
// Currently we do not re-query. // Currently we do not re-query.
return ( return (
<main className="h-screen overflow-clip"> <main className="flex flex-col h-screen overflow-clip">
{/* TopBar */} {/* TopBar */}
<div className="sticky top-0 left-0 right-0 z-10"> <div className="sticky top-0 left-0 right-0 z-10">
<div className="flex flex-row justify-between items-center py-1.5 px-3 gap-4"> <div className="flex flex-row justify-between items-center py-1.5 px-3 gap-4">

View file

@ -15,7 +15,7 @@ export const SearchResults = ({
onOpenFileMatch, onOpenFileMatch,
}: SearchResultsProps) => { }: SearchResultsProps) => {
return ( return (
<ScrollArea className="h-full overflow-y-auto"> <ScrollArea className="h-full">
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
{fileMatches.map((match, index) => ( {fileMatches.map((match, index) => (
<FileMatch <FileMatch