Skip to content

Commit

Permalink
push search suggestions to higher z index
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Dec 20, 2023
1 parent c45584e commit dd210a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const SearchComponent: React.FC<SearchComponentProps> = ({ onFileSelect }) => {
onClick={() => setShowSearch(true)}
/>
)}
<div className="absolute" style={{ height: "calc(100vh - 30px)" }}>
<div className="absolute z-20" style={{ height: "calc(100vh - 30px)" }}>
{searchResults.length > 0 && (
<div className=" z-10 h-full border-pink-500 translate-x-[-40px] bg-pink-500 border shadow-lg overflow-x-none overflow-y-auto">
<div className=" z-10 h-full translate-x-[-40px] border shadow-lg overflow-x-none overflow-y-auto">
{searchResults.map((result, index) => (
<div
key={index}
Expand Down

0 comments on commit dd210a6

Please sign in to comment.