summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-09-28 10:50:49 -0700
committerNate Sesti <sestinj@gmail.com>2023-09-28 10:50:49 -0700
commita7cb0929bd064f73a1e3e49ba8dd6b6b7de387f4 (patch)
tree0ef7ee807121f968dc07448d0345c3c018f08be5
parenta8e69a02e6897689a1727fb7542ed5684b1348e2 (diff)
downloadsncontinue-a7cb0929bd064f73a1e3e49ba8dd6b6b7de387f4.tar.gz
sncontinue-a7cb0929bd064f73a1e3e49ba8dd6b6b7de387f4.tar.bz2
sncontinue-a7cb0929bd064f73a1e3e49ba8dd6b6b7de387f4.zip
fix: :bug: fix height bug after cmd+shift+R
-rw-r--r--docs/docs/customization/models.md2
-rw-r--r--extension/react-app/src/components/ComboBox.tsx10
2 files changed, 8 insertions, 4 deletions
diff --git a/docs/docs/customization/models.md b/docs/docs/customization/models.md
index ba3f6424..7c5caee7 100644
--- a/docs/docs/customization/models.md
+++ b/docs/docs/customization/models.md
@@ -62,7 +62,7 @@ config = ContinueConfig(
model="gpt-3.5-turbo",
api_base="https://my-azure-openai-instance.openai.azure.com/",
engine="my-azure-openai-deployment",
- api_version="2023-03-15-preview",
+ api_version="2023-07-01-preview",
api_type="azure"
)
)
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 6c99a650..43b66476 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -286,9 +286,14 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
if (!inputRef.current) return;
if (inputRef.current.scrollHeight > inputRef.current.clientHeight) {
inputRef.current.style.height = "auto";
- inputRef.current.style.height = inputRef.current.scrollHeight + "px";
+ inputRef.current.style.height =
+ Math.min(inputRef.current.scrollHeight, 300) + "px";
}
- }, [inputRef.current, props.value]);
+ }, [
+ inputRef.current?.scrollHeight,
+ inputRef.current?.clientHeight,
+ props.value,
+ ]);
// Whether the current input follows an '@' and should be treated as context query
const [currentlyInContextQuery, setCurrentlyInContextQuery] = useState(false);
@@ -907,7 +912,6 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
<MainTextInput
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={(e) => {
- console.log("left");
if (
e.relatedTarget === deleteButtonDivRef.current ||
deleteButtonDivRef.current?.contains(e.relatedTarget as Node)