Task attempt 3aaf763a-c4ff-4a99-8b64-6feb037cd50a - Final changes (#42)

This commit is contained in:
Louis Knight-Webb
2025-07-01 16:37:34 +01:00
committed by GitHub
parent 6a8d7d8a19
commit aca769983e

View File

@@ -230,8 +230,7 @@ export function FileSearchTextarea({
textareaRect.top +
paddingTop +
currentLine * lineHeight -
maxDropdownHeight -
8;
maxDropdownHeight;
maxHeight = maxDropdownHeight;
} else if (
wouldBeClippedBelow &&
@@ -242,8 +241,7 @@ export function FileSearchTextarea({
textareaRect.top +
paddingTop +
currentLine * lineHeight -
availableSpaceAbove -
8;
availableSpaceAbove;
maxHeight = Math.max(availableSpaceAbove, minDropdownHeight);
} else {
// Position below the cursor line