🐛 small fixes
This commit is contained in:
parent
1a83acc306
commit
be71408787
3 changed files with 10 additions and 7 deletions
|
|
@ -366,7 +366,7 @@ export function getSidebarContent(
|
|||
${page ? `<script>window.location.pathname = "${page}"</script>` : ""}
|
||||
|
||||
|
||||
${false && `<iframe src="http://localhost:65433/sw"></iframe>`}
|
||||
${false ? `<iframe src="http://localhost:65433/sw"></iframe>` : null}
|
||||
</body>
|
||||
</html>`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -585,7 +585,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
|
|||
try {
|
||||
let res: any = miniSearch.search(query.trim() === "" ? "/" : query, {
|
||||
prefix: true,
|
||||
fuzzy: 3,
|
||||
fuzzy: 1,
|
||||
});
|
||||
if (res.length === 0) {
|
||||
res = firstResults;
|
||||
|
|
@ -1193,10 +1193,12 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
|
|||
ref={divRef}
|
||||
>
|
||||
<GradientBorder
|
||||
loading={active}
|
||||
loading={active && props.isLastUserInput}
|
||||
isFirst={false}
|
||||
isLast={false}
|
||||
borderColor={active ? undefined : vscBackground}
|
||||
borderColor={
|
||||
active && props.isLastUserInput ? undefined : vscBackground
|
||||
}
|
||||
borderRadius={defaultBorderRadius}
|
||||
>
|
||||
<MainTextInput
|
||||
|
|
@ -1221,7 +1223,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
|
|||
fontSize={getFontSize()}
|
||||
disabled={props.disabled}
|
||||
placeholder={
|
||||
props.isMainInput
|
||||
history.length === 0
|
||||
? `Ask a question, '/' for slash commands, '@' to add context`
|
||||
: `Ask a follow-up`
|
||||
}
|
||||
|
|
@ -1452,7 +1454,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
|
|||
}
|
||||
}}
|
||||
>
|
||||
⏎ Return
|
||||
⏎ Enter
|
||||
</EnterButton>
|
||||
</InputToolbar>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ function useChatHandler(dispatch: Dispatch) {
|
|||
};
|
||||
const historyItem: ChatHistoryItem = {
|
||||
message,
|
||||
contextItems,
|
||||
contextItems:
|
||||
typeof index === "number" ? history[index].contextItems : contextItems,
|
||||
};
|
||||
|
||||
let newHistory: ChatHistory = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue