fix: prompts list height (#340)

This commit is contained in:
Matri 2023-04-01 15:40:25 +08:00 committed by GitHub
parent aefec17525
commit 3650d8d7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ export const ChatInput: FC<Props> = ({
<IconSend size={18} />
</button>
{showPromptList && prompts.length > 0 && (
{showPromptList && filteredPrompts.length > 0 && (
<div className="absolute bottom-12 w-full">
<PromptList
activePromptIndex={activePromptIndex}

View File

@ -215,7 +215,7 @@ export const SystemPrompt: FC<Props> = ({
onKeyDown={handleKeyDown}
/>
{showPromptList && prompts.length > 0 && (
{showPromptList && filteredPrompts.length > 0 && (
<div>
<PromptList
activePromptIndex={activePromptIndex}