sticky input component

This commit is contained in:
2024-12-30 10:11:57 +08:00
parent 4dcc655e53
commit 115343cc27

View File

@@ -662,8 +662,8 @@ export default function ChatBOX() {
/> />
</div> </div>
)} )}
</div>
<div className="sticky top-0 z-10 bg-background"> <div className="sticky bottom-0 w-full z-20 bg-background">
<form className="relative rounded-lg border bg-background focus-within:ring-1 focus-within:ring-ring p-1"> <form className="relative rounded-lg border bg-background focus-within:ring-1 focus-within:ring-ring p-1">
<ChatInput <ChatInput
value={inputMsg} value={inputMsg}
@@ -700,10 +700,7 @@ export default function ChatBOX() {
{chatStore.whisper_api && chatStore.whisper_key && ( {chatStore.whisper_api && chatStore.whisper_key && (
<> <>
<WhisperButton <WhisperButton inputMsg={inputMsg} setInputMsg={setInputMsg} />
inputMsg={inputMsg}
setInputMsg={setInputMsg}
/>
<span className="sr-only">Use Microphone</span> <span className="sr-only">Use Microphone</span>
</> </>
)} )}
@@ -732,7 +729,6 @@ export default function ChatBOX() {
setImages={setImages} setImages={setImages}
/> />
</div> </div>
</div>
</> </>
); );
} }